开发者

Black WinForms button

开发者 https://www.devze.com 2023-01-22 04:08 出处:网络
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 borde

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消