DIGIT-ARC read-only archive · snapshot: July 23, 2026

how to add a hotkey in VB

3 posts · originally from https://geek.digit.in/community/threads/how-to-add-a-hotkey-in-vb.78612/

A
adi007 Original post #1
Jan 20, 2008 at 11:49 AM
Is there any way to add a hotkey to some actions in a VB..
for example in case of webshots ctrl+alt+w will change the wall paper..
is there any method to do so in VB program..
Note that i have not asked how to add shorcut key-->it's easy.
QwertyManiac
Jan 20, 2008 at 11:56 AM
The example at the following link looks clear, however I have not tried it yet, will do so later.

*www.vbaccelerator.com/home/VB/Code/Libraries/Subclassing/Registered_Hotkeys/article.asp
A
adi007 #3
Jan 21, 2008 at 11:09 AM
it's for VB6 i presume....
i will try it but there are huge chances that it will not work in VB2008..coz there is drastic change from VB6 to present VB...
Thanks for the link:D

It would be helpful if someone finds the way to add hotkey in case of VB2008