henk

henk

  • NA
  • 1
  • 2.7k

How To Detect Keypress in ToolStripMenuItem

Jul 2 2012 4:15 PM
I've got 2 questions with regards to the MenuStrip and the ToolStripMenuItem controls. (VS 2008 / .Net 3.5 )

I'm trying to figure out how I can detect a keypress on a ToolStripMenuItem. To my surprise, I don't see KeyUp/KeyDown/KeyPress events in the event list of the ToolStripMenuItem.

  1. Why is it that there are KeyPress/Down/Up events for the MenuStrip control but not for the ToolStripMenuItem?
  2. How can I detect a keypress on the different ToolStripMenuItems that I have created?

Thanks in advance,
Henk