I have a form with keypreview true. OnKeyPress (if key is escape) I was closing the form.
Later I set autocomplete with the first text box in form. Autocomplete is working but OnKeyPress event is not working now. If cursor is not in text box having auto-complete OnKeyPress works and still close the form on escape key.
Please guide how I can have both ? Autocomplete with closing form on escape.