PDA

View Full Version : [TUT] Hotkeys



Havenangle
11-20-2008, 02:31 PM
Heres a TUT for making hotkeys in vb2008.

First: Make a new Project.
Second: Double Click Your Form and them get to the codeing screen.
Third: Click On the "Form1" Drop down button and change it to "Form1 Events."
http://i532.photobucket.com/albums/ee325/havenangle/VB2008.jpg

Fourth: Click The Right drop Down button and click "KeyDown"
http://i532.photobucket.com/albums/ee325/havenangle/Keydown.jpg

Fifth: Now heres the Real codeing part.
Put in this code: (Example Code)

If e.KeyCode = Keys.A Then
Timer1.Enabled = True
End If
If e.KeyCode = Keys.B Then
Timer1.Enabled = False
End If
http://i532.photobucket.com/albums/ee325/havenangle/VB2008Key.jpg

I hope this was helpful to you, please Thank Me or something :P

Durrcookie
11-20-2008, 02:52 PM
Already knew it but it's great for new coders ^^
Sticked

Gamehacker
11-21-2008, 09:50 AM
thank you!!! I have been searching that for a long time.

bhoybhoy4
11-21-2008, 06:46 PM
i learn something ^^

dongthuc
03-01-2009, 10:01 PM
thank you!!!

-=D3lisle=-
03-27-2009, 06:09 PM
I like that way. But it have so many way to make hotkey ^^

Chimpen
03-31-2009, 10:12 AM
You forgot something....uhm
Yea you did u forgot to change in the forms "keypreview to true" or you can write in form1
KeyPreview = True

someguy23
04-08-2009, 08:00 AM
I wouldn't call these hotkeys, since they don't work if your form doesn't have the focus. But they are still something. Perhaps I'll make a hotkey tutorial sometime... (if we don't already have one somewhere)

Almog6666
04-10-2009, 08:38 AM
Thenx :D I was relly need thet