I'm working on Windows 8, VS 2012. I added a round icon to my button:
this.btn.Image = Properties.Resources.icon;
this.btn.Size = Properties.Resources.icon.Size;
Also my form has background image:
this.BackgroundImage = Properties.Resources.sunset;
But I'm getting ugly form, where my icon button is square: the round image in the middle and gray color in the corners.
The question is how can I display form background instead of gray color?
Thank you for your attention
You can set some property of your button to gain what you need:
FlatStyle
property of your button to Flat
BackColor
property to Transparent
FlatAppearance
Set BorderSize
to 0. FlatAppearance
You can also set MouseDownBackColor
and MouseOverBackColor
to back color of form or the color you want.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With