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: Show a form in a form
From Wiki
Because a Form inherits from control you can get a form to show up in a form (not and mdi child) It needs a little magic but it looks something like this.
- Public Class Form1
- Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
- Dim _frm2 As New Form2
- _frm2.TopLevel = False
- _frm2.Show()
- Me.Controls.Add(_frm2)
- End Sub
- End Class
the magic bit is the toplevel = false. Without that you get an error.




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