MDI CONTAINER SPLIT ON TWO PARTS C#
Is that possible?
MDI CONTAINER SPLIT ON TWO PARTS C#
Is that possible?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Rajkiran SwainPosted Apr 4, 2023, 12:21 PM
Yes, it is possible to split an MDI (Multiple Document Interface) container on two parts in C#.
To do this, you can use the
SplitContainercontrol provided by Windows Forms. TheSplitContainercontrol allows you to split the container into two panels, which can be resized and arranged as needed.Here are the general steps to split an MDI container on two parts:
SplitContainercontrol to your MDI container form.Dockproperty of theSplitContainercontrol toFill, so that it fills the entire form.Orientationproperty of theSplitContainercontrol toHorizontal, so that it splits the container into two parts vertically.SplitContainer, one for each panel.Dockproperty of each child control toFill, so that it fills the entire panel.Once you have split the MDI container into two parts, you can add child forms to each panel as needed.
Keep in mind that the
SplitContainercontrol can affect the layout and behavior of child controls, so you may need to adjust the layout and resizing behavior of your child forms accordingly.Goran BibicPosted Apr 5, 2023, 7:03 AM
Thank you