Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Hot Keys for CW command buttons

Does anybody know of an easy way to assign hotkeys (or shortcut keys some
peope call them)
to CWUI command buttons in VB? Basically I want to use F1 to operate the
first command button
F2 the second one and so forth. In CVI this was easy but I can't find an
effective way of doing it in VB

paul
0 Kudos
Message 1 of 2
(3,368 Views)
You will have to use the Form's KeyPreview property and create a KeyPress (KeyDown or KeyUp) event procedure for the form that calls the subroutines associated with each command buttons click events. See the attached example.
Download All
0 Kudos
Message 2 of 2
(3,368 Views)