Connecting Tech Pros Worldwide Forums | Help | Site Map

How to activate specific object when form is loaded ?(c#)

Newbie
 
Join Date: Oct 2009
Posts: 8
#1: 4 Weeks Ago
I want my combobox to become an active object and ready to input text into that right after form is loaded ? Is there a way to make my combobox active control ?

Thanks
best answer - posted by Fr33dan
You should try setting the TabIndex to 1. If that doesn't work you could call .Focus() on your combobox in the Form.Load event.

Newbie
 
Join Date: Oct 2008
Posts: 17
#2: 4 Weeks Ago

re: How to activate specific object when form is loaded ?(c#)


You should try setting the TabIndex to 1. If that doesn't work you could call .Focus() on your combobox in the Form.Load event.
Newbie
 
Join Date: Oct 2009
Posts: 8
#3: 4 Weeks Ago

re: How to activate specific object when form is loaded ?(c#)


Thanks. I used the Focus() method in form activation method and it worked smoothly .
Reply