Changes

Hiding and Showing Forms in Visual Basic

21 bytes added, 18:06, 19 July 2007
Creating a Visual Basic Application Containing Multiple Forms
Visual Studio will prime the new project with a single form. Click on the Form to select it and, using the ''Properties'' panel change the ''Name'' of the form to ''mainForm''. Next we need to add a second form. To do this, click on the ''Add New Item'' in the Visual Studio toolbar to invoke the ''Add New Item'' window:
[[Image:Exampvisual_studio_add_new_item.jpg]]
The ''Add New Item'' window allows new items of various types to be added to the project. For this example we jusy need to add a new Windows Form to the our application. With ''Windows Form'' selected in the window click on ''Add''. Visual Studio will now display an additional tab containing the second form: