c# - Cascade the MDI forms of a Splitter panel -
I am showing my MDI window inside the main form, but in a part of the splitter panel, such as:
form 2f2 = new form 2 (); F2.MdiParent = this; F2.Parent = this.splitContainer2.Panel2; F2.Show ();
But the problem is that if I write a code like this then I can not cure them:
this.LayoutMdi (System.Windows. FormsMDLayout Cascade);
"This" is the default form
"post-text" itemprop = "text">
split you The layout engine will have to be overridden for the container panel. Microsoft is a good example of creating custom layout engines.
Private Zero CascadeToolStripMenuItem_Click (Object Sender, EventArgs e) {//LayoutMdi (MdiLayout.Cascade); Rectangle bounding = splitContainer1.Panel1.DisplayRectangle; Point next farm location = bounding place; Leading (control se panel 1. control in this septor container 1) (if (! C. Visual) {release; } NextFormLocation.Offset (c.Margin.Left, c.Margin.Top); C.Location = NextFormHotel; C.BringToFront (); If (C. Autosis) {c. Size = c. Gettrapford Size (Bounding Size); } NextFormLocation.X = Bounding.x + 20; NextFormLocation.Y = Bounding Y + 20; }}
Simply add the above code to your cascade button and you will get the basics of the waterfall
Comments
Post a Comment