Less Than Dot is a community of passionate IT professionals and enthusiasts dedicated to sharing technical knowledge, experience, and assistance. Inside you will find reference materials, interesting technical discussions, and expert tips and commentary. Once you register for an account you will have immediate access to the forums and all past articles and commentaries.
VB.Net: Open a form
From Wiki
Opening a form is easy. You just have to remember that VB.Net is an OO language and that forms are classes and thus objects.
- Public Class Form1
- Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
- Dim _frm2 As New Form2
- _frm2.Show()
- End Sub
- End Class
So this
- Public Class Form1
- Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
- Dim _frm1 As New Form2
- _frm1.Show()
- Dim _frm2 As New Form2
- _frm2.Show()
- Dim _frm3 As New Form2
- _frm3.Show()
- End Sub
- End Class
Will jut open three instances of the same form. These forms are not related in any way apart from the fact that they look the same. Which looks like this





LTD Social Sitings
Note: Watch for social icons on posts by your favorite authors to follow their postings on these and other social sites.