Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click 'Gets or sets a value indicating whether the form is a container for more multiple-document interface (MDI) child forms Me.IsMdiContainer = True With Form2 'sets the current multiple-document interface(MDI) parent form of this form .MdiParent = Me 'show the form2 .Show() End With End Sub