Results 1 to 2 of 2

Thread: MDI question...

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2003
    Posts
    98

    MDI question...

    I have an MDI form called mother, and i want to be able to open a form from inside a child form and still have mother as the container form.

    Obviously I cant use me (it is frmstatus, which is not the mdi container), so what can I do?

    Code:
     
            Dim NewMDIChild As New frmIRC()
            'Set the Parent Form of the Child window.
            NewMDIChild.MdiParent = Me
            'Display the new form.
            NewMDIChild.Show()

  2. #2
    PowerPoster
    Join Date
    Dec 2003
    Location
    Bristol, England (but heart is in Virginia)
    Posts
    2,949
    Hi,


    amend the line

    NewMDIChild.MdiParent = Me

    to

    NewMDIChild.MdiParent = Me.mdiParent
    Taxes
    The more I learn about VB.NET the more I like dBaseIII Plus

    The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.

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