Results 1 to 3 of 3

Thread: Display different forms inside the main form

  1. #1
    akmsamir is offline C# Forum Newbie
    .NET Framework
    .NET 4.0
    Join Date
    Jun 2016
    Posts
    1
    Rep Power
    0

    Display different forms inside the main form

    zz.jpg
    hello there! I have this application with huge space that is usable and buttons on left hand side of the main winForm. I want to display different forms in that blank space and act as a child for that main form.

    *I am very very very new to C#, m just beginning, any help would be appreciable.

    thanks

  2. #2
    jmcilhinney is offline C# Forum Moderator
    .NET Framework
    .NET 4.0
    Join Date
    Apr 2011
    Posts
    1,468
    Rep Power
    118
    MDI is the term you're looking for: Multiple Document Interface. You set the IsMdiContainer property of the parent for to true in the designer and then you assign that parent form to the MdiParent property of each child form before calling Show.

    Note that any controls that you have already added to the parent form will float over the MDI client area, which may not look ideal. If not, you can add a Panel to the form and set its Dock property to the appropriate edge, then move the existing child controls into that.

  3. #3
    JuggaloBrotha's Avatar
    JuggaloBrotha is offline C# Forum Moderator
    .NET Framework
    .NET 4.0
    Join Date
    Apr 2011
    Location
    Lansing, MI; USA
    Posts
    87
    Rep Power
    77
    From the looks of the screenshot, he really just needs a vertical tab control with the tabs on the left side, that would give him a container to lay out each "tab" on the right.
    I've done this in another (vb.net) project years ago, let me see if I can find the link to the vert tab control I used.

    Edit:
    [.NET 2.0+] Visual Studios "My Project" Tab Control (Updated! 12/9/2009)-VBForums

Tags for this Thread

Bookmarks

Posting Permissions

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