• Hello and welcome to our new forums. We upgraded our forum sites to a more robust and modern system which we hope you will enjoy. Be sure to check out your profile by clicking the button on the top right and configure your preferences, signature, time zone, avatar, etc. as you wish. If you need help with using this new forum'ware try the help link on the bottom right.

    Click here to review your account now.

Display different forms inside the main form

akmsamir

New member
Joined
Jun 7, 2016
Messages
1
Programming Experience
Beginner
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
 

jmcilhinney

C# Forum Moderator
Staff member
Joined
Apr 23, 2011
Messages
2,172
Location
Sydney, Australia
Programming Experience
10+
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.
 

JuggaloBrotha

Moderator
Staff member
Joined
Apr 23, 2011
Messages
146
Location
Lansing, MI; USA
Programming Experience
10+
Top Bottom