Click here to Skip to main content
15,922,512 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can i find a width between two columns in a tablelayoutpanel?
Posted

1 solution

Two adjacent columns don't have any space in between them. Should they be farther apart, you have every column's width in
TableLayoutPanel.ColumnStyles[i].Width. The rest is addition and subtraction.
 
Share this answer
 
Comments
srinivasan_indian 2-Dec-11 8:15am    
if (resizing){if (rbColumn.Checked){

columnStyles[GColumn].SizeType = SizeType.Absolute;

columnStyles[GColumn].Width += e.X - columnStyles [GColumn ].Width ;

} }

I want to move only specific column. But this code moving the specific column as well as the next columns.

I want to move only the specific column with the help of GColumn value...

I think, we should calculate total tablelayoutpanel width size itseems...

Help me...

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