Re: Key Up event wont run
Got it working now, however arrow keys wont work.
I changed the arrow key downs to w,a,s,d and it now works.
why might this be?
Re: Key Up event wont run
The arrow keys are special and are treated differently to other keys. I think you have to override the IsInputKey method of a control to get it to treat the arrows like other keys, although I've never tried so I'm not sure.
Re: Key Up event wont run
I've never had issues, as long as you have 'Me.KeyPreview = True' it should work....
Re: Key Up event wont run
Quote:
Originally Posted by
Bruce Fox
I've never had issues, as long as you have 'Me.KeyPreview = True' it should work....
Hmmm... I thought that the arrow keys were treated differently in certain circumstances but I just tested and, when Buttons have focus at least, the arrow keys are registered by KeyUp as normal. Assuming KeyPreview is True, I'd be interested to know what controls have focus in the OP's project.
Re: Key Up event wont run
Quote:
Originally Posted by
jmcilhinney
Hmmm... I thought that the arrow keys were treated differently in certain circumstances but I just tested and, when Buttons have focus at least, the arrow keys are registered by KeyUp as normal. Assuming KeyPreview is True, I'd be interested to know what controls have focus in the OP's project.
they are in some instances ... i remember this was also the case in vb6
Re: Key Up event wont run
Quote:
Originally Posted by
jmcilhinney
.... I'd be interested to know what controls have focus in the OP's project.
Thats where it becomes interesting, as it usually is that last thing that your made aware of (as you'd know) :)
In any case, in this example I suspect the OP doesn't have the Forms KeyPreview set as the OP stated that nothing happened.