user3694177
user3694177

Reputation: 43

VB.Net - Button Style Modification

I just like to ask how this Buttonstyle is called in .net:

https://i.sstatic.net/gVNuo.png

And How do I color the borders gray? It should look like in the Image.

Upvotes: 0

Views: 13036

Answers (1)

The Blue Dog
The Blue Dog

Reputation: 2475

That is a "FlatStyle" button, you can set the style, text colour, border colour and mouse-over colour like so:

Button1.FlatStyle = FlatStyle.Flat
Button1.ForeColor = System.Drawing.Color.Black
Button1.FlatAppearance.BorderColor = System.Drawing.Color.Gray
Button1.FlatAppearance.MouseOverBackColor = System.Drawing.Color.LightGray

Upvotes: 1

Related Questions