How can I create button with solid border(3d), like picture below on C# winforms?
Panel BorderStyle
can be set as Fixed3D
, but buttons BorderStyle
cannot be set as Fixed3D
.
I also already tried FlatAppearance
which is actualy flat style.
You can customize the
Button
control this way have thick 3d borders:FlatStyle
to beFlat
FlatApperanace
setBorderSize
to0
FlatApperanace
setMouseOverBackColor
toControlLight
Then handle
Paint
event and usingControlPaint.DrawBorder
draw a thick 3d border:And here is the result: