Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Release Form by KeyPress
Message
From
08/07/1999 11:49:18
 
 
To
08/07/1999 11:32:08
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00238880
Message ID:
00238894
Views:
10
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform