Click here to Skip to main content
15,913,225 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a table layout panel it has 3 rows and a column in first row I have a toolstrip having two buttons and in third I have a grid first row is absolute, second is absolute and third is autosize

Now on resize event or toolstrip If I change the size of first row dynamically third row shows odd behavior.For a value of first row ,third row (grid) sometimes overlaps the first rows control and sometimes too far from it .
Is there any problem with the control
Posted

Your design doesn't seem so complex.
Use Dock and Anchor features of the controls instead of TableLayoutPanel. You'll be happy with the performance.
 
Share this answer
 
Comments
deveoper12345 20-Apr-11 1:24am    
hi prerek thanks for reply but I cant remove the tablelayoutpanel as it is requirement . So I have to think on it
Thanks again
This is the inherent problem of this panel. You can limit the minimal size of the form, System.Windows.Forms.Form.MinimumSize. I would recommend using a regular System.Windows.Forms.Panel instead, with all its children using docking: System.Windows.Forms.DockStyle other then None, with one of them with System.Windows.Forms.DockStyle.Fill, also use Padding property. This layout is one of the most stable to resize. You will need to limit System.Windows.Forms.Form.MinimumSize anyway.

—SA
 
Share this answer
 
Comments
deveoper12345 20-Apr-11 1:29am    
Thanks SAKryukov sir .But I cant change the control. Is there any stable (may be complex) way to do it.
Thanks
Sergey Alexandrovich Kryukov 20-Apr-11 1:39am    
Please see my first sentence -- this is a solution for your panel.
There should not be a requirement like that. This is your problem entirely -- you got an advice.
--SA
Hello,
I added one TableLayoutPanel in my program dynamically. I want to delete row from that tableLayoutPanel by clicking button.

Please help me. Its very urgent.

Thanx in advance.
 
Share this answer
 

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