摘录的WinForm Control 开发2,CustomColorCheckBox,CustomColorRadioButton

CustomColorCheckBox控件:拓展WinForm CheckBox。

1.选中的颜色可以设置。

2.大小可以拖动

原理:继承CheckBox,重写次类的Paint方法,然后重新绘制控件。 

CustomColorRadioButton控件: 拓展WinForm RadioButon

1.选中颜色可以设置。

2.大小可以拖动。

 原理:继承RadioButon,重写次类的Paint方法,然后重新绘制控件。 

/Files/csharponworking/ColoredCheckContols.rar 

原文地址:https://www.cnblogs.com/csharponworking/p/1673061.html