Results 1 to 3 of 3

Thread: Need help with MDI in VB.NET

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2004
    Posts
    94

    Need help with MDI in VB.NET

    I made an application in VB6 which I am now remaking in VB.NET.

    It is a MDI form in wich all other forms are displayed. I cant seem to replicate this behaviour in VB.NET. I set the 'IsMDIForm' value of the main form in VB.NET to 'True'. But I can't figure out how to set the other forms to MDI Child. They do vanish when I close the main application but they do show up outside the frame of the main window. The second problem is how to show some forms modally. When I open the settings dialog I don't want the user to be able to access the main form. Can anyone tell me how to do this or point me to a tutorial?

  2. #2
    New Member
    Join Date
    Jun 2005
    Posts
    2

    Re: Need help with MDI in VB.NET

    In your main form set the IsMdiContainer property to True.

    In your main form where you want to open the child form do the following.
    VB Code:
    1. Dim frmChildForm as new ChildForm
    2. frmChildForm.MdiParent = Me
    3. frmChildForm.Show()

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jun 2004
    Posts
    94

    Re: Need help with MDI in VB.NET

    Thanks. That solves the first portion of my problem. But i still don't know how to show it modally.

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