Elgin,
Check out the GetKeyState API
Declare short GetKeyState in Win32API integer nKey
#define cnControlKey 0x11
#define cnShiftKey 0x10
llShiftKey = GetKeyState(cnShiftKey)<0
llControlKey = GetKeyState(cnControlKey)<0
HTH
Caroline
>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.
Caroline