G
Glenn Carr
I'm attempting to add Shortcut keys for dynamically created MenuItems,
and they simply aren't firing when the shortcut key is pressed. Here
is a snippet of the code...
....
MenuItem = new MenuItem( ... );
mi.ShowShortcut = true;
mi.Shortcut = action.Shortcut;
mi.Click += new EventHandler( action.Invoke );
miMainAction.MenuItems.Add( insertPosition++, mi );
....
Is there something I need to do to hook up these shortcut keys since I
am adding them on the fly?
and they simply aren't firing when the shortcut key is pressed. Here
is a snippet of the code...
....
MenuItem = new MenuItem( ... );
mi.ShowShortcut = true;
mi.Shortcut = action.Shortcut;
mi.Click += new EventHandler( action.Invoke );
miMainAction.MenuItems.Add( insertPosition++, mi );
....
Is there something I need to do to hook up these shortcut keys since I
am adding them on the fly?