How to: Hide a Form
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:
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
Tasks
Example of Manipulating Objects
How to: Pass Parameters to a Form
How to: Manage Multiple Instances of a Form