469,082 Members | 1,108 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,082 developers. It's quick & easy.

Command on the press of a key?

Can i carry out a command during execution with the press of a key?

Am working on a Countdown Timer and everytime i press p on the keyboard, i
want to add a minute to the timer and every time i press m, i want to deduct
a minute from it.

Any suggestion would be much appreciated.

Thanks in advance,
Brian
Jul 17 '05 #1
1 2837
Set keypreview to true on the form and watch for the desired keystrokes.

"Brian Basquille" <tb********@eircom.netSPAM> wrote:
Can i carry out a command during execution with the press of a key?

Am working on a Countdown Timer and everytime i press p on the keyboard, i
want to add a minute to the timer and every time i press m, i want to deduct
a minute from it.

Any suggestion would be much appreciated.

Thanks in advance,
Brian


More about me: http://thelabwiz.home.mindspring.com/
VB3 source code: http://thelabwiz.home.mindspring.com/vbsource.html
VB6 source code: http://thelabwiz.home.mindspring.com/vb6source.html
VB6 - MySQL how to: http://thelabwiz.home.mindspring.com/mysql.html
My newest language - NSBasic for the Palm PDA: http://thelabwiz.home.mindspring.com/nsbsource.html
Drivers for Pablo graphics tablet and JamCam cameras: http://home.earthlink.net/~mwbt/
johnecarter atat mindspring dotdot com. Fix the obvious to reply by email.
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Jwolf | last post: by
16 posts views Thread by John Salerno | last post: by
25 posts views Thread by Tim Zych | last post: by
1 post views Thread by CARIGAR | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.