[Tutorial] Making a MDI Container (Like AIO)

MastaOfEvil Dec 23, 2012

  1. MastaOfEvil

    MastaOfEvil Dev XPG Developer Lifetime Gold TeamXPG
    0/47

    Joined:
    Dec 21, 2011
    Messages:
    660
    Likes Received:
    330
    Trophy Points:
    0
    Gender:
    Male
    Console:
    Xbox
    Ok first start a new project in Visual Studio, name it whatever you like.

    Now you are going to change the setting IsMdiContainer to true.
    [​IMG]

    Now, via a menu bar or however you want to do it, add a button.
    [​IMG]

    Now add your mod tool as another form (I.E. Form2.vb) and put this code on the button.
    [​IMG]

    Code:
    Form2.MdiParent = Me
    Form2.Show()
    

    Now when you start your program and press the button, your tool should pop up and not leave its parent.
    [​IMG]

    You can also add a Close All button to close all open forms, use the following code for that.

    Code:
    For Each tool As Form In Me.MdiChildren
       tool.Close()
    Next
    
     

Share This Page

Close