Search
Setup for Free
C
C#
•
4y 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
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,155
Members
View on Discord
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
I
idris_2020
OP
•
11/28/22, 11:40 PM
to make it more like this
I
idris_2020
OP
•
11/29/22, 4:02 PM
anyone
?
I
idris_2020
anyone?
A
Amos
•
11/29/22, 4:46 PM
You need to provide more info
. Is this a WinForm or some web buttons
? Maybe show your styling for it
.
I
idris_2020
OP
•
11/29/22, 6:02 PM
i did say in the title and tag winforms
I
idris_2020
OP
•
11/29/22, 6:06 PM
so i have a table layout panel with some buttons in it with dock set to fill
A
Amos
•
11/29/22, 6:44 PM
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
?
A
Amos
Ah, I missed that. Was looking at the text body. I'm not too familiar with WinF...
I
idris_2020
OP
•
11/29/22, 7:22 PM
no because theyre in a container
I
idris_2020
OP
•
11/29/22, 7:22 PM
like a table
A
Amos
•
11/29/22, 7:24 PM
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
I
idris_2020
OP
•
11/29/22, 7:38 PM
ok with searching it up and messing with some settings i did it
I
idris_2020
OP
•
11/29/22, 7:39 PM
i basically had to make the columns autosize
, then add margins to the buttons then make the columns fixed equal percentage back again
A
Amos
•
11/29/22, 9:55 PM
If it
's fixed please close the thread with
/close
A
Accord
APP
•
11/30/22, 10:00 AM
Closed
!
Similar Threads
✅ How do I make an exponent in winforms?
C
C# / help
4y ago
❔ WinForms buttons
C
C# / help
3y ago
How do I write out an object in Winforms
C
C# / help
4y ago
How do I do an inner GroupJoin on dotnet?
C
C# / help
2y ago