Smile[VB] Multiple forms

Posts 1–4 of 4 · Page 1 of 1
[VB] Multiple forms
Okay this is a simple tutorial how to use & add multiple forms in Visual Basic.

For this one you need :
1 Button.

Lets get started :
1. Start a project & add the button.
2. You can name it what ever you like.
3. Now go left up and press "Project-> Add windows form>"

4. After you have added the form, double click the button and write the code :
Form2.Show()
It should look like this
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Form2.Show()
Note: Form2 is the default name.

5. Now debug and click the button to open Form2

TIP: To hide the Form1 write
Me.Hide()
under the Form2.Show() code.
Pretty easy to do...
He say's at top in this easy tutorial
So why u post it then ?
If it's easy.
People should ask for a code only if they need help.
then remember and learn
Obvious is easy, but he didn't say this tutorial is for pro coders
Good job buddy, haterz gonna hate
Posts 1–4 of 4 · Page 1 of 1

Post a Reply

Tags for this Thread

None

Need help?