How to close all open forms.
-
I have created an application in which there r several forms open and when i click logout button then all the open forms should get closed and login page should get open.so, how do i close all open forms.
coolsatty
Application.OpenForms
Gets a collection of opened forms owned by the application.Eslam Afifi
-
Application.OpenForms
Gets a collection of opened forms owned by the application.Eslam Afifi
-
iterate through them and close them
For Each form As Form In Application.OpenForms form.Close() ' close the form form.Dispose() ' to clean up resources Next
Eslam Afifi
-
iterate through them and close them
For Each form As Form In Application.OpenForms form.Close() ' close the form form.Dispose() ' to clean up resources Next
Eslam Afifi
-
Application.OpenForms
is new to the .Net Framework 2.0 (VB 2005)Eslam Afifi
-
Application.OpenForms
is new to the .Net Framework 2.0 (VB 2005)Eslam Afifi
-
Sorry, I can't help It's been a long time since I used the .Net 1.1 and I currently don't have VS 2003 installed.
Eslam Afifi