✅ How do I create an inner margin in a container with buttons winforms
I want to make the gaps between the buttons larger
10 Replies
to make it more like this
anyone?
You need to provide more info. Is this a WinForm or some web buttons? Maybe show your styling for it.
i did say in the title and tag winforms
so i have a table layout panel with some buttons in it with dock set to fill
Ah, I missed that. Was looking at the text body.
I'm not too familiar with WinForms, so excuse the ignorance, but couldn't you just manually move the buttons?
no because theyre in a container
like a table
https://stackoverflow.com/questions/3748441/margins-around-the-system-windows-forms-button I'm sure someone else will chip in with some way better input than I've been able to provide, but take a look at this. Maybe it's similar to the problem you're facing?
Stack Overflow
Margins around the System.Windows.Forms.Button
How can "solid" margins be made around System.Windows.Forms.Button control?
var button = new System.Windows.Forms.Button();
button.Dock = DockStyle.Fill;
button.Margin = new
ok with searching it up and messing with some settings i did it
i basically had to make the columns autosize, then add margins to the buttons then make the columns fixed equal percentage back again
If it's fixed please close the thread with /close
Closed!