I am writing a winforms application and one of the functions is to open an item’s properties. I’m not able to find out how to handle this. A menu item doesn’t allow to define such a keyboard shortcut and implementing the handler manually with the keyup or keypress event handlers doesn’t work either. Anyone out there who knows how to do this?
Share
I think Thomas is correct, you must use a
ToolStripMenuItem. Adding the following line to my.designerfile worked like a champ:The keystroke works and the
stringAlt + Enteris displayed on the menu item.