C
C#2y ago
idris_2020

✅ 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
idris_2020
idris_2020OP2y ago
to make it more like this
idris_2020
idris_2020OP2y ago
anyone?
Amos
Amos2y ago
You need to provide more info. Is this a WinForm or some web buttons? Maybe show your styling for it.
idris_2020
idris_2020OP2y ago
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
Amos
Amos2y ago
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?
idris_2020
idris_2020OP2y ago
no because theyre in a container like a table
Amos
Amos2y ago
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
idris_2020
idris_2020OP2y ago
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
Amos
Amos2y ago
If it's fixed please close the thread with /close
Accord
Accord2y ago
Closed!
Want results from more Discord servers?
Add your server