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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • desturrr
    New Member
    • Oct 2009
    • 18

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

    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
  • Fr33dan
    New Member
    • Oct 2008
    • 57

    #2
    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.

    Comment

    • desturrr
      New Member
      • Oct 2009
      • 18

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

      Comment

      Working...