Hello,
How to set a shortcut key for label in VB.
pls i want to know that is there any keyboard shortcut for bringing the label ctrl in the form.
Thanks!
Hello,
How to set a shortcut key for label in VB.
pls i want to know that is there any keyboard shortcut for bringing the label ctrl in the form.
Thanks!
by usemenomonic=true
object.KeyLabel(keycode) [= string]
You would probably create the menu item as follows:
.Add “keyFile”, , , “E&xit”, , vbAltMask + vbCtrlMask, vbKeyEnd
The default key label for vbKeyEnd is “End”. Thus, the shortcut string will be created by default as “Ctrl+Alt+End”.
Hi,
You can assign the shortcut key to label. But the event will not be fired like buttons.
If you use the shortcut key, the focus will be set to the next control which as higher tab index.
For no mouse to get to the tollbox use as follows :
Press Alt on your keyboard, you should notice the File Menu becomes selected, then using the arrow keys scroll accross to view, and press down.
Using the arrow keys scroll down to Toolbox, and hit enter.
You should now realise that in VB's IDE the Toolbox is now highlighted, to which you can use either Tab or the arrow keys to navigate arround, pressing Enter to add a control.
Enjoy.
Bookmarks