Click here to Skip to main content
15,885,740 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i want to decrease the width between to columns. Actually i have two buttons placed one in each column and now i want to decrease the gap between the 2 buttons.Can somebody help me here.Thanks in advance.
Posted
Comments
Please post the codes you have tried so far.
agent_kruger 25-Dec-13 6:10am    
actually i tried many properties but can find none to reduce the width and i haven't found a piece of code to write till now.
Check - TableLayoutPanel.ColumnStyles Property[^].

// Set the column width to 50 pixels.
style.SizeType = SizeType.Absolute;
style.Width = 50;
agent_kruger 25-Dec-13 7:04am    
no i want to reduce the distance but the above code didn't work at all

1 solution

you can increase margin for each button you have if column SizeType = auto
else you can change your Coloum SizeType
 
Share this answer
 
Comments
agent_kruger 21-May-14 10:36am    
sir, actually i want to "decrease" the gap between 2 buttons not "increase".

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