Working with Multiple Forms in VB.Net

VB.Net allow working with multiple forms. Every form in Visual Basic.Net is known as windows. A Windows application can either be a Single Form application or multiple form application. Here I’m showing you how to create a new form in Visual Studio and how to show the second form.

How to Create a New Form in Visual Studio?

Follow the below steps to create a new form in Visual Studio VB.Net application.

Project -> Add New Item -> Windows Form

working with multiple forms

working with multiple forms

Example Program

Public Class Form1

Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load

End Sub

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
 Form2.Show()


 End Sub
End Class

 

The above program explains how to show the second form from the primary form.