G
Guest
I have a CF 1.0 application with a menu. When a menu item is selected by the
user, whatever key the user pressed is passed through to the application.
So, if the user presses "3", the event for menu item 3 is executed, and my
application receives KeyDown and KeyUp events for "3".
In fact, if the user presses "5" for "Exit", the application exits (via
Form.Close()), and the "5" keystroke is passed to the home screen, which
brings up all my contacts with first or last names starting with "J", "K", or
"L".
How can I prevent this from happening? I want the menu to handle the
keypress so it isn't passed on to the application underneath.
Thanks!
user, whatever key the user pressed is passed through to the application.
So, if the user presses "3", the event for menu item 3 is executed, and my
application receives KeyDown and KeyUp events for "3".
In fact, if the user presses "5" for "Exit", the application exits (via
Form.Close()), and the "5" keystroke is passed to the home screen, which
brings up all my contacts with first or last names starting with "J", "K", or
"L".
How can I prevent this from happening? I want the menu to handle the
keypress so it isn't passed on to the application underneath.
Thanks!