I need to make a few hot-keys for my form. I need them to work no matter what control is active and I don't want to have to make an event method for each control to handle a keypress so how do I make a universal hot-key for it?
Printable View
I need to make a few hot-keys for my form. I need them to work no matter what control is active and I don't want to have to make an event method for each control to handle a keypress so how do I make a universal hot-key for it?
Set the form's KeyPreview property to True and it will receive keyboard events before its controls.
Thanks