TextBox autocomplete and Enter key

  • Thread starter Thread starter Clive Dixon
  • Start date Start date
C

Clive Dixon

I have a dialog with OK button as default, i.e. pressing Enter will close
the form. I have added a TextBox to the form, with AutoCompleteMode =
SuggestAppend, with a custom datasource. If I select an item in the suggest
dropdown and press Enter, my dialog closes. How can I stop this happening?
 
....and ditto for the Escape key - it closes my form rather than closing the
dropdown.
 
Back
Top