>Bly,
>
>Set the fomr's keypreview to .T. and trap the keystroke in the form's keypress event.
And don't forget, for any keystrokes you're trapping that have another default FoxPro meaning (e.g. PgDn normally instructs FoxPro to go to the next active form if there is one) to put the keyword NODEFAULT in the CASE which is handling that keystroke in your KeyPress method code.
HTH
Rich Addison, Micro Vane, Inc., Kalamazoo, MI
Relax, don't worry, have a homebrew.
- Charlie Papazian, The New Complete Joy of Home Brewing