Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > Programmers Lounge > Programming Discussions » VB Keyboard input question
Closed Thread
Old 11-09-2006, 08:57 AM   #1 (permalink)
 
True Techie

Join Date: Apr 2006

Posts: 219

IfYouHaveToAsk

Default VB Keyboard input question

Hi i'm making a program with VB 6.0 and i want the program to detect when the user presses the control key.

Code:
Private Sub Form_KeyDown(KeyCode As Integer, shift As Integer)
If KeyCode = vbKeyControl then .....
I found that code online but it doesnt seem to work.

can anyone offer a pointer in the right direction
__________________
AMD 3000+
2gb RAM
X800 PCI-e
80gb + 250gb WD HDDs
X-FI Xtreme Music
DVD/CD-RW Drive
IfYouHaveToAsk is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On