|
-
May 12th, 2009, 01:44 PM
#1
Thread Starter
Lively Member
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?? 
Thanks for your help.
-
May 12th, 2009, 01:51 PM
#2
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.
-
May 12th, 2009, 02:20 PM
#3
Thread Starter
Lively Member
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
-
May 12th, 2009, 03:29 PM
#4
Thread Starter
Lively Member
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?
-
May 12th, 2009, 06:20 PM
#5
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...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|