Tuesday, December 11, 2007

How to show another form in your project

How to show another form in your project

Step 1

To show your form you need to declare a object with a form properties and then make it appear using Show() method.

The following code below will make your form number 2 appear when user click on the button.

Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

Dim f2 As New Form2()

f2.Show()

End Sub

No comments: