GrpGroupBox.cs 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. 
  2. using System.ComponentModel;
  3. using System.Drawing;
  4. using System.Windows.Forms;
  5. namespace Dongke.WinForm.Controls
  6. {
  7. /// <summary>
  8. /// 分组控件,该控件显示围绕一组具有可选标题的控件的框架。
  9. /// </summary>
  10. [ToolboxBitmap(typeof(GroupBox))]
  11. public class GrpGroupBox : GroupBox, IDKControl
  12. {
  13. #region 构造函数
  14. /// <summary>
  15. /// 分组控件,该控件显示围绕一组具有可选标题的控件的框架。
  16. /// </summary>
  17. public GrpGroupBox()
  18. {
  19. base.BackColor = Color.Transparent;
  20. }
  21. #endregion
  22. #region 重写属性
  23. /// <summary>
  24. /// 获取或设置控件的背景色
  25. /// </summary>
  26. [DefaultValue(typeof(Color), "Transparent")]
  27. public override Color BackColor
  28. {
  29. get
  30. {
  31. return base.BackColor;
  32. }
  33. set
  34. {
  35. base.BackColor = value;
  36. }
  37. }
  38. #endregion
  39. }
  40. }