How to switch between forms in a Windows Forms application that is built by using Visual Basic 2005 (914354)
The information in this article applies to:
- Microsoft Visual Basic 2005
- Microsoft Visual Studio 2005 Express Edition
- Microsoft Visual Studio 2005 Professional Edition
- Microsoft Visual Studio 2005 Standard Edition
- Microsoft Visual Studio 2005 Team System Architect Edition
- Microsoft Visual Studio 2005 Team System Developer Edition
- Microsoft Visual Studio 2005 Team System Team Foundation:
SUMMARYThis step-by-step article describes how to switch between forms by using the My.Forms object in a Microsoft Windows Forms application that is built by using Microsoft Visual Basic 2005. INTRODUCTIONTo display a form in a Windows Forms application that is built by using Visual Basic 2005, use either the Show method or the ShowDialog method of the form. Note Use the My.Forms object to acquire a reference to a form. When you use the ShowDialog method, the form is displayed as a modal dialog box. Alternatively, you can set the Visible property of the form to True to display a form. To hide a form, use one of the following methods: - Use the Hide method.
- Set the Visible property to False.
REFERENCESFor more information about how to create Windows applications, visit the following Microsoft Developer Network (MSDN) Web site:
Modification Type: | Minor | Last Reviewed: | 10/3/2006 |
---|
Keywords: | kbhowto kbinfo KB914354 kbAudDeveloper |
---|
|