If you just want this to apply to your application then you can handle the
KeyDown
or
KeyPress
event of your form, search on MSDN for examples, there are plenty of them. Not forgetting to set the
KeyPreview
of your
Form
.
For wider use you will need to hook into Windows' keyboard handling.
This[
^] might help with that.