Menu keypresses "fall through" to application

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top