Combobox enter key press
Posted on 2005-03-15
I feel dumb asking this question....but I won't let that stop me because I want to find out how to do this.
In a C# Windows Form....I have a ComboBox filled with data. I can PICK an item from the list of items in the ComboBox and that works just fine.
But if I type in the item by hand (in the combo box text area) and then press ENTER....nothing happens.
What event am I supposed to wire up to the combo box such that an ENTER key press does the same thing as picking an item.
NOTE: Also...I want to be limited to typin in ONLY valid items that are already listed in the combo box.
NOTE: The items in the combo box are a list of state abbreviations (WA, UT, WI, NY, etc).