set focus on the first control

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to create a method to set focus on first control in a windows form How
i can do it?
 
Hi,
Please ignore previous post.Try this code in form load event.This is problem
with posting in hurry:
this.Controls[0].Focus
 
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?
 
Back
Top