timmay3141
Programmer
I want a certain method to be called whenever Ctrl+Left arrow is pressed when my form is active. It is easy to do this for menu items with their Shortcut property, but I can't figure out how to do it when there is no menu item corresponding to this. I can't just override OnKeyDown as I'd like to since it isn't ever called because a control has focus. I suppose I could create a menu item, hide it, and add a shortcut key to get this to work, but I really shouldn't have to do that. In C++ I could do this easily enough with an accelerator, but since C# is simpler, so I can't figure out how to do it
. Can anyone help?