How can I create button with solid border(3d), like picture below on C# winforms?
Panel <
You can customize the Button
control this way have thick 3d borders:
FlatStyle
to be Flat
FlatApperanace
set BorderSize
to 0
FlatApperanace
set MouseOverBackColor
to ControlLight
Then handle Paint
event and using ControlPaint.DrawBorder draw a thick 3d border:
private void button1_Paint(object sender, PaintEventArgs e)
{
ControlPaint.DrawBorder(e.Graphics, button1.ClientRectangle,
SystemColors.ControlLightLight, 5, ButtonBorderStyle.Outset,
SystemColors.ControlLightLight, 5, ButtonBorderStyle.Outset,
SystemColors.ControlLightLight, 5, ButtonBorderStyle.Outset,
SystemColors.ControlLightLight, 5, ButtonBorderStyle.Outset);
}
And here is the result: