开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜