set focus on the first control

G

Guest

I need to create a method to set focus on first control in a windows form How
i can do it?
 
G

Guest

Hi,
Please ignore previous post.Try this code in form load event.This is problem
with posting in hurry:
this.Controls[0].Focus
 
G

Guest

Ok but i need to set focus on editable control,enabled...is not so simple

Manish Bafna said:
Hi,
Please ignore previous post.Try this code in form load event.This is problem
with posting in hurry:
this.Controls[0].Focus
--
Hope this helps.
Thanks and Regards.
Manish Bafna.
MCP and MCTS.



Michele Len said:
I need to create a method to set focus on first control in a windows form How
i can do it?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top