>Phil, this is what I use in one of my app's.
>Keypress event of the form.
>
>LPARAMETERS nKeyCode, nShiftAltCtrl
>
>
IF nShiftAltCtrl = 2 &&-CTRL KEY PRESSED
> DO CASE
> CASE nKeyCode = 19 &&-CTRL S (SAVE TRANSACTION)> THISFORM.PAGEFRAME1.PAGE1.DBFNAV2.CMDSAVE.SETFOCUS()
> KEYBOARD "{spacebar}"
>
>Hope this helps.
>
>Joe
I tried this too. Things work fine if I use a single key (I had success with S and A). Once I try to add Ctrl to the mix (with the nShiftAltCtrl parameter) it quits working (i.e. nothing happens when I press Ctrl+S). I realize that the Alt key has to be avoided, but why won't the combination of Ctrl+S work?
I have tried both your code (in bold) and:
If nShiftAltCtrl=2 AND nKeyCode = 19
"Grrrrrr" said the frustrated programmer wannabe to the app!!!!
Phil Thomas
http://phillipdthomas.comNever let your energy or enthusiasm be dampened by the discouragements that must inevitably come.....