General information
Category:
Forms & Form designer
Actually the KeyPreview = .t. in the form property sheet works the best. I can then trap for key strokes in the form's KeyPress event.
Antoher method I used was to define menu items in the menu designer with shortcuts to the form's button.click event. I tested for the form being active in the menu's procedure code as follows:
IF _screen.ActiveForm.name = [MYFORM]
_screen.ActiveForm.MyCommandButton.click()
ENDIF
I could then define any shortcut key stroke on the menu designer to call a button on my form.
Thanks,
Jerry
>Jerry,
>
>Please let us know what works...BTW, if you decide to stack two command buttons, you can create a class (based on a container) that has both buttons and all of the functionality built in.
>
>>I'll give this a try.
>>
>>Thanks,
>>
>>Jerry
>>
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only