|
-
Dec 23rd, 2009, 08:26 PM
#1
Thread Starter
Lively Member
Shortcut Keys in Visual Basic
Hi, I was wondering about how to apply shortcut keys (like control+c and control+v) in visual basic
There was a thread on this I found but I tried all the codes and variations but nothing worked, like nothing would happen when I pressed the keys
could someone give me the code about how to activate a "control+t" and a "control+r" control? thanks
the farthest I got was:
private sub form3_key down...........handles form3.keydown
if e.keycodes = keys.control and e.keycodes = keys.t then
msgbox("hi")
end if
end sub
I that was the best looking code I got, but it didn't work
i also did
For Each item As Control In Me.Controls
AddHandler item.KeyDown, AddressOf Form3_KeyDown
Next
i noticed if I did code for just pressing the control key it worked but when I tried to use two keys it didnt'
Tags for this Thread
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
|