Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Which key pressed?
Message
 
To
04/08/2004 01:13:59
Reza Meamar
Homa Programming Group
Shiraz, Iran
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00930559
Message ID:
00930570
Views:
21
Hi,

Set the KeyPreview property of the form to .T. Then put the following code into the form's KeyPress event:
LPARAMETERS nKeyCode, nShiftAltCtrl

  If m.nKeyCode == -1 and m.nShiftAltCtrl == 0
    * your code goes here...
    NoDefault 
  EndIf
However, be aware that this won't work in the IDE with the default menu because F2 is a menu hotkey (next bookmark). It works in the EXE or if you created and executed your own menu.

--
Christof
--
Christof
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform