Black WinForms button
What is the most straightforward way to add a black button with white text in a WinForms开发者_如何学运维 Application? Simply setting the BackColor to black and the ForeColor to white the button border remains as before.
Do I need to subclass the System.Windows.Forms.Button class and take control of the OnPaint() drawing?
Thanks.
Set the FlatStyle
property to FlatStyle.Flat
.
You can use the FlatAppearance
property to further modify the L&F.
精彩评论