Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help button hotkey
Message
From
21/06/2006 14:23:35
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01130167
Message ID:
01130584
Views:
14
>>Hi All
>>
>>Having a blank moment (the usual state of affairs) ... given a button on a form whats the fastest way to attach a key (eg F1) to the button click event?
>
>I don't know if F1 is trappable (never wanted to trap this key :o)) , but you could try.
>Set KeyPreview = .t. (Form level)
>In KeyPress Event:
>
>LPARAMETERS nKeyCode, nShift
>IF nKeyCode == 28 && F1
>   NODEFAULT
>   thisform.Command.Click()
>ENDIF
>
Thanks Borislav.
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Previous
Reply
Map
View

Click here to load this message in the networking platform