E
Ed Stewart
Hello. I first posted this on microsoft.public.dotnet.languages.csharp
because I found that linked to on some website. Since then, I've found this
windowsforms group. Sorry if you're reading this twice; it won't happen
again.
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
because I found that linked to on some website. Since then, I've found this
windowsforms group. Sorry if you're reading this twice; it won't happen
again.
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