General information
Title:
Esc Key with combobox
Hi all. I close my form when user hits "esc" key. but because of that i have following problem.
i.e. use clicks on combobox , which will populate drop down list . and then if user hits "esc" it closes the whole form. but instead it should close the dropdown and return focus to combobox. (which is combobox's default behaviour also)
For your knowledge , I have kept the form's Keypreview property .T. I also have property called "lreleaseonEsc" . I have following code in form's keypress event.
If Thisform.lReleaseOnEsc and nKeyCode = 27
thisform.releaseform() &&check for unsaved data before closing form
endif
Please let me know if anyone has idea what to do to solve problem?
Thanks in advance
Mark
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only