>Jim,
>I've ofen come across this issue and your answer semms to
>point in the right direction but??
>What is the nKey = -1 do??
>
>Thanks,
>Sandy
Sandy,
If you open the Keypress event code editing window you will see that there are parameters passed to it from VFP. One of them is nKey and it holds the key code for the key that was pressed.
If you look up INKEY() in the help file you will find a list of key codes, -1 is F2.