ComboBox - set focus?

  • Thread starter Thread starter Ed Stewart
  • Start date Start date
E

Ed Stewart

Hello. I'm creating an application that requires user input into a ComboBox,
and I'd like to have the cursor appear in this emtpy ComboBox when the
application starts. I had a plain TextBox, and the cursor started there
automatically; to implement a history feature, I've moved to a ComboBox, but
now the user needs to click on it before typing.

How do I set focus on this item? I've tried adding a null string and calling
comboBox.Focus() to no avail. I read somewhere the trick is to set the focus
to the editable text box contained within the ComboBox, but I haven't been
able to figure out how to do that.

Thanks,
-ed
 
Back
Top