n how to show cascade windows in Splitcontainer panel2 c#
        Posted  
        
            by 
                user1875373
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by user1875373
        
        
        
        Published on 2012-12-04T10:49:43Z
        Indexed on 
            2012/12/04
            11:07 UTC
        
        
        Read the original article
        Hit count: 276
        
In MdiParent toolstripmenuItem, I'm writing the code to show all the windows in cascade or Tile Horizontal style. My code is:
this.LayoutMdi(MdiLayout.Cascade);
this.LayoutMdi(MdiLayout.TileHorizontal);
This code will work in mdi parent only. But now I'm using a Split container in my Parent Form. In Panel1 I have buttons to Show the Form. In Panel2 My Forms will display, as:
        Forms.paymentPaid paidFm = new SalesandPurchases.Forms.paymentPaid();
        paidFm.MdiParent = this;
        paidFm.Left = (this.myPanel.Width - paidFm.Width) / 2;
        paidFm.Top = (this.myPanel.Height - paidFm.Height) / 2;
        myPanel.Controls.Add(paidFm);
        paidFm.Show();
Now Because of my Split Container my code( this.LayoutMdi(MdiLayout.Cascade)) is not working for cascade the windows in Panel2. Please tell me any other way.
© Stack Overflow or respective owner