using System.ComponentModel; using System.Drawing; using System.Windows.Forms; namespace Dongke.WinForm.Controls { /// /// 分组控件,该控件显示围绕一组具有可选标题的控件的框架。 /// [ToolboxBitmap(typeof(GroupBox))] public class GrpGroupBox : GroupBox, IDKControl { #region 构造函数 /// /// 分组控件,该控件显示围绕一组具有可选标题的控件的框架。 /// public GrpGroupBox() { base.BackColor = Color.Transparent; } #endregion #region 重写属性 /// /// 获取或设置控件的背景色 /// [DefaultValue(typeof(Color), "Transparent")] public override Color BackColor { get { return base.BackColor; } set { base.BackColor = value; } } #endregion } }