Cascade the MDI forms of a Splitter panel
- by BDotA
I am showing my MDI windows inside the main form but in one part of the splitter panel, like this:
Form2 f2= new Form2();
f2.MdiParent = this;
f2.Parent = this.splitContainer2.Panel2;
f2.Show();
but the problem is that I cannot cascade them if I write a code like this:
this.LayoutMdi(System.Windows.Forms.MdiLayout.Cascade);
"this" is the parent form. the main form.
Hoe can I cascade them?
thanks all.