So I am using a button on my program, and when I use button1.FlatAppearance.BorderSize = 0; it works fine.
But.. when I click on the desktop, it does this.
How do I fix this?
So I am using a button on my program, and when I use button1.FlatAppearance.BorderSize = 0; it works fine.
But.. when I click on the desktop, it does this.
How do I fix this?
You can set (hardcode) the border color. With following code line the button1
border color get the parent Control
BackColor
button1.FlatAppearance.BorderColor = button1.Parent.BackColor;