Results 1 to 2 of 2

Thread: [RESOLVED] MDI child form

  1. #1

    Thread Starter
    Hyperactive Member yousufkhan's Avatar
    Join Date
    Jan 2002
    Location
    India
    Posts
    492

    Resolved [RESOLVED] MDI child form

    i am not able fine midchild property in the form property window
    can anybody tell me how to set mdichild property

  2. #2
    PowerPoster Deepak Sakpal's Avatar
    Join Date
    Mar 2002
    Location
    Mumbai, India
    Posts
    2,424

    Re: MDI child form

    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:
    1. Public Class Form1
    2.  
    3.     Private Sub Form1_Load( _
    4.         ByVal sender As System.Object, _
    5.         ByVal e As System.EventArgs _
    6.     ) Handles MyBase.Load
    7.  
    8.         Dim frm2 As New Form2
    9.         frm2.MdiParent = Me
    10.         frm2.Show()
    11.     End Sub
    12.  
    13. End Class

    Form1 is a MDI Form whose IsMdiContainer proerty is set to True and form 2 is a normal form.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width