Maybe I have your problem, so I'm trying to guess:
Have you set the KeyPreview property of your WindowsForm to true ?
This will allow you to use WindowsForm to trigger keystroke events before they start pumping up the control that is currently focusing on the user interface.
Let me know if this works, please.
Sincerely.
source share