日期:2010-01-05 浏览次数:20527 次
- using System;
- using System.Windows.Forms;
- using System.Drawing;
- using System.ComponentModel;
- namespace WindowsApplication4
- {
- /// <summary>
- /// Summary description for CustomColorRadioButton.
- /// </summary>
- public class CustomColorRadioButton : RadioButton
- {
- // Fields
- private Color checkColor;
- public CustomColorRadioButton()
- {
- this.checkColor = this.ForeColor;
- this.Paint += new PaintEventHandler(this.PaintHandler);
- }
- [Description("The color used to display the check painted in the RadioButton")]
- public Color CheckColor
- {
- get
- {
- return checkColor;
- }
- set
- {
- &nbs