Auto drop down combobox

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Andy Bates

    Auto drop down combobox

    I've got what at first appears to be a really simple problem.

    I have a dropdown combobox with a list of names in, the user can enter text
    into the edit portion or drop the combobox and select a name.

    What I need to do is to drop the combobox when the user types and find the
    nearest entry to what the user entered (so if they typed A, Andy may be the
    nearest entry, the list should scroll, but not select, unless the user uses
    arrow down or clicks with the mouse). This should progress this way as the
    user enters more text.

    I can use the DroppedDown property to drop the combobox, but if I do this in
    the TextChanged event, then the nearest item in the combobox is selected and
    the text is put into the edit box. I've played around with various state
    variables, but none of them give me the functionality I require.

    The same problem was solved previously in C++, but can I get the C# code to
    work...

    Any help would be greatly appreciated?

    TIA

    - Andy


Working...