I start a new project.
The 1st form's name = Form1.
In the Properties window I change the name to frmone.
I add another form via Project and Add Form (Windows Forms)...
The 2nd form's name = Form2.vb.
In the Properties window I change the name to frmtwo.
But my code doesn't work...
Why do I have to declare frmtwo as a variable? The form already exists.
And apparently I have to set a reference to frmtwo, but I can't figure out how to do that.
So can someone please help me? Thanks.
The 1st form's name = Form1.
In the Properties window I change the name to frmone.
I add another form via Project and Add Form (Windows Forms)...
The 2nd form's name = Form2.vb.
In the Properties window I change the name to frmtwo.
But my code doesn't work...
Code:
Private Sub frmone_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Dim frmtwo As New Form
frmtwo.show()
End Sub
And apparently I have to set a reference to frmtwo, but I can't figure out how to do that.
So can someone please help me? Thanks.