G
Guest
I'm having a weird problem with the Keydown event.
- I have a form with the KeyPreview property set to true
- I have a Form_KeyDown sub that does a bit of code for me
- I have a few control buttons on the form
Now comes the weird part. When I first launch the form, it intercepts the
key presses no problem (i'm capturing the arrow keys). However, when I click
on a button, the form no longer fires off the keydown event, pressing the
left arrow, for example, will start cycling through the other buttons.
Is there a way to return the focus or control to the form so it can capture
the arrow's being pressed and run the form_keydown code?
- I have a form with the KeyPreview property set to true
- I have a Form_KeyDown sub that does a bit of code for me
- I have a few control buttons on the form
Now comes the weird part. When I first launch the form, it intercepts the
key presses no problem (i'm capturing the arrow keys). However, when I click
on a button, the form no longer fires off the keydown event, pressing the
left arrow, for example, will start cycling through the other buttons.
Is there a way to return the focus or control to the form so it can capture
the arrow's being pressed and run the form_keydown code?