The Close method of the form and the Hide method ...
Source: Internet
Author: User
Form1.close and form1.hide can not see the Form1, but the two are somewhat different, design can pay attention to the following aspects:
The 1.Close method closes the form and does not take up the system resources when it is closed. The Hide method is a hidden form that sets the Visible property of its form to flase, and the system does not release its resources.
2. When a form is hidden, the user cannot interact with it, but the controls in it are still accessible from the Code. Therefore, forms that need to be displayed frequently should use the Hide method rather than the Close method.
3. If you hide the form, it will save the last state the next time you display it with the show or ShowDialog method. Please note that this is not what you need.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.