I've successfully implemented AutoCompleteCustomSource on a TextBox control (single line, no drop-down) , which is saved in My.Settings. Also on this TextBox, I have a KeyPress event which, when triggered by the [Enter] key, a .PerformClick() is called on a button.
However, as long as the AutoCompleteMode and AutoCompleteSource are set, then when the [Enter] key is pressed, the TextBox is cleared and the KeyPress event never fires. If I remove the AutoComplete features (set them to None), the TextBox behaves as expected and the KeyPress event fires correctly.
Why is this happening?