YO guys and girls.
Does anyone have any id how to ad shortcuts to a program?
I want to use more shortcuts than those in Menu Editor
Printable View
YO guys and girls.
Does anyone have any id how to ad shortcuts to a program?
I want to use more shortcuts than those in Menu Editor
Do you want to add shortcuts to the start menu?
Or do you want to launch an outside program from your program?
You can add other shortcuts to menus by first adding the shortcut text to the menu Caption property preceeded with a Tab. Then set the Forms KeyPreview property to Ture so you can intercept the keyboard activity. Then trap for the key in the Form_KeyPress event...
VB Code:
Private Sub Form_Load() Me.KeyPreview = True 'Make the SpaceBar a shortcut mnuTest.Caption = "Test" & vbTab & "SpaceBar" End Sub Private Sub Form_KeyPress(KeyAscii As Integer) 'Trap for the spacebar If KeyAscii = vbKeySpace Then MsgBox "Space bar pressed" End If End Sub
Greg