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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Rajkiran SwainRank #165 · 14.4K reputationPosted Apr 4, 2023, 8:21 AM EDT
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 BibicRank #993 · 2K reputationPosted Apr 5, 2023, 3:03 AM EDT
Thank you