Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detecting SHIFT or CTRL Key pressed
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Detecting SHIFT or CTRL Key pressed
Miscellaneous
Thread ID:
00821373
Message ID:
00821373
Views:
51
I have a grid where in two of the columns I set the DblClick() method of the contained TextBox to a custom method on the form, ThisForm.FieldMerge().

However I do not want the method to execute unless the user is holding down either the SHIFT or CTRL key, and depending on which of the two they are pressing while doubleclicking I want to do one of two CASE statements in my custom method.

How do I detect which key is "held down" at the time of the DoubleClick. I've read the INKEY(), Keypress, LASTKEY(), etc stuff, but I'm not understanding what is needed.

Thank you.
Elgin Rogers
Epic Solutions
www.epicsolutions.net
Next
Reply
Map
View

Click here to load this message in the networking platform