>I what to release the First form in my program by having the user press the spacebar. What do I need to do.
>
>Thank You
Roelaux,
This may not be the best way to do it but you can do it this way:
1. Set Form.KeyPreview to TRUE
2. In the KeyPress event of the form, trap for the spacebar:
IF nKeyCode = 32
THISFORM.Release()
ENDIF
I think that should do it - I normally like to test any answers before I post them but I'm stuck using Fox 2.6 Windows and the hard disk is too small to install visual fox :(
HTH
regards
Ian