how to set a shortcut key on a menu item

  • Thread starter Thread starter Wilfried Mestdagh
  • Start date Start date
W

Wilfried Mestdagh

Hi,

This gives me a runtime error that it is an invalid value. I tryed some
other keys with same result. However I tryed some function keys and they
work (whell I did not test if it work, I did test if there was no
exception). Are there limitations or do I do something wrong here ?

cancelReferencePointsToolStripMenuItem.ShortcutKeys = Keys.Escape;
 
Hi Dave,

Thank you. It was for a temporary setting and get it fast disabled by
pressing Esc. But you are right the key itself already has a meaning. I
capture it now in the form's keydown.
 

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

Back
Top