Combobox Autocomplete


G

Guest

I'm working with C# in Visual Studio 2005. I have a combobox with
AutoCompleteSource = ListItems and DropDownStyle = DropDown. I want users to
be able to type in the combobox and the control to autocomplete (Append
AutoCompleteMode), but have their options limited to the control's ListItems.
Right now the autocomplete works fine, but they can type anything that isn't
in the list. Is there an easy way to set the control to do this or am I going
to have to write code to verify what was typed during TextUpdate or another
event?
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top