Results 1 to 2 of 2

Thread: Finding MdiParent property

  1. #1

    Thread Starter
    Addicted Member toytoy's Avatar
    Join Date
    Jul 2004
    Posts
    230

    Finding MdiParent property

    Hi...

    I try the example on Parent and Child....


    I can find the IsMildContainer in the form1 when i first create the project.


    However when i create another form2........i can 't find the MdiParent property in the form....


    How do i know when MdiParent is visible at times and when is not.....



    Thanks

  2. #2
    Addicted Member
    Join Date
    Apr 2004
    Location
    Lagos, Nigeria
    Posts
    215
    Are you looking for it at design time?

    This property is only available at run time. To make form2 an MDI child of form1, try this:
    VB Code:
    1. Dim f as New form2()
    2. f.MdiParent = InstanceOfForm1
    3. f.Show()

    If you are loading form2 from within form1, you can replace InstanceOfForm1 with the 'Me' keyword. Otherwise InstanceOfForm1 should be a reference to an instance of form1

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