Article ID: 914354 - Last Review: November 22, 2007 - Revision: 1.5 How to switch between forms in a Windows Forms application that is built by using Visual Basic 2005
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:
MORE INFORMATIONTo switch between forms by using the My.Forms object in a Windows Forms application that is built by using Visual Basic 2005, follow these steps:
REFERENCESFor more information about how to create Windows applications, visit the following Microsoft Developer Network (MSDN) Web site: http://msdn2.microsoft.com/en-us/library/Aa984088(VS.71).aspx
(http://msdn2.microsoft.com/en-us/library/Aa984088(VS.71).aspx)
APPLIES TO
| Other Resources Other Support Sites
CommunityGet Help NowArticle Translations
|






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email
Back to the top
