i am not able fine midchild property in the form property window
can anybody tell me how to set mdichild property
Printable View
i am not able fine midchild property in the form property window
can anybody tell me how to set mdichild property
There is no MDIChild property for the form now in VB.NET. Below is the code to show child form in MDI form. Here I am displaying form 2 as a child form in form 1.
vb.net Code:
Public Class Form1 Private Sub Form1_Load( _ ByVal sender As System.Object, _ ByVal e As System.EventArgs _ ) Handles MyBase.Load Dim frm2 As New Form2 frm2.MdiParent = Me frm2.Show() End Sub End Class
Form1 is a MDI Form whose IsMdiContainer proerty is set to True and form 2 is a normal form.