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:
Post a Comment