Keydown with buttons useage
Hi
I am trying to use the keydown/keyup events with buttons in the same project and it not working properly. I have 4 red boxes and when I press an arrow key the box should change to green according to which arrow key it corrosponds to. I have this part working fine, however only when there is nothing else in the project. When I add in say 3 buttons, Button1, Button2, Button3 and try runing the program instead of the correct red box changing to green, button outline just moves between buttons 1,2 and 3. I have tried turning tabstop off for the three buttons but that didnt work. Any suggestions on how to read the keydown/keyup while still having buttions that can be pressed with a mouse?? :confused:
Thanks for your help.
Re: Keydown with buttons useage
I can't think of any reason why it shouldn't work.
Can you show us what code you have at the moment.
Re: Keydown with buttons useage
I Found another post with my same problem and I have it fixed now. Thanks for your responce though. You can read the post at, kind of a weard problem though. :)
http://www.vbforums.com/showthread.p...keydown+button
Re: Keydown with buttons useage
Well I thought it solved my problem, turns out I still cannot detect when the arrow keys are up or down? Any suggestions to this?
Re: Keydown with buttons useage
Read my post in that topic, just use labels. Same as buttons but they don't hog the focus, and they don't look like buttons...