How to: Hide a Form
Visual FoxPro 9.0 SP2 |
How to: Hide a Form |
See Also |
You can hide a form so that it is not visible to a user. When the form is hidden, the user cannot interact with the form, but you still have full programmatic control of them.
To hide a form
-
Use the Hide Method.
For example, in the code associated with the Click Event of a command button, you could include the following line of code:
Copy Code
THISFORM.Hide
When the user clicks the command button, the form remains in memory, but is not visible.
Releasing Forms
You can allow a user to release a form when he or she is finished interacting with it. When you release a form, you can no longer access properties and methods of the form.
To release a form
-
Call the Release Method.
For example, in the code associated with the Click Event of a command button, you could include the following line of code:
![]() | |
---|---|
THISFORM.Release |
When the user clicks the command button, the form closes.
See Also
© , 1996-2020 • Updated: 11/10/20
Comment or report problem with topic