31
Jan
Jan
I have a form in which i hold the "p" button and a timer is enabled…i have other command buttons there as well…when i hold the "p" button the timer enables (using keydown) and when i release it, it disables (using keyup)…but when i press a button such as reset timer (which has to be a command button), i cannot use the "p" button, because the reset button is highlighted. As i play the form the buttons are not highlighted…and i can see the progress of the timer with a label…i would appreciate it if you could help me find a way to deselect the button , or remove the highlight….
P.S. when i say highlight i mean the dotted line around the button…thanks
Answer:
I am not sure if I am understanding you correctly, but I think you should be able to use the 'gotFocus' method (or one similar) and change the value of it to "false". I am not sure if that would work, but it is how I would do it. After calling that method, you will probably need to refresh, or repaint, the form so it shows the change.
Good luck.
Answer:
it seems to me that you are looking for a hotkey. You can search the MSDN for info on hotkeys.
http://msdn2.microsoft.com/en-us/library…
Book Mark it-> del.icio.us | Reddit | Slashdot | Digg | Facebook | Technorati | Google | StumbleUpon | Window Live | Tailrank | Furl | Netscape | Yahoo | BlinkList
This entry was posted
on Thursday, January 31st, 2008 at 3:42 pm and is filed under Programming.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or TrackBack URI from your own site.