Click here to Skip to main content
15,033,219 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI
i am using one MDI form inside that i used User Controls in that i created TableLayoutPanel
here the problem is whenever i am resizing the MDI form window all the controls are not resizing by making dock property to FILL and keeping anchor to Top,Left
Posted

1 solution

I had these issues aswell with some of my applications. It's not really an ideal way to solving the problem but you should try adding your own "Anchoring".

To do this you can use the Resize event on the MDI form and apply some calculations to your controls.

Little example:

C#
TextBox textBox1 = new TextBox();
textBox1.Size = new Size(mdiForm.Size.Width - 20, 25);


That way when the MDI form is being resized so will the controls. Again, not ideal.. but this is how i "fixed" it.
   
v4

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900