Location:
Search - groupbox
Search list
Description: A New Skin for Ye Olde GroupBox
Creating a custom GroupBox in WinForms that supports skinning-Introduction
When applying a dark skin theme to my Windows Forms application which used a GroupBox
But as soon as I wanted to set the GroupBox.Enabled property to false, things did not look that good anymore.
As can be seen in the screendump, the standard GroupBox on the right automatically chooses a black color for the disabled state:
Background
SkinSettings Class
The skin themes are in a separate class SkinSettings, to keep the example small, it only has a few settings.
It also has a ColorDisabled() method for calculating the custom disabled Color.
Hide Shrink Copy Code
using System
using System.Drawing
namespace CustomControls1
{
/// <summary>
/// A simple SkinSettings class.
/// This could be extended to support more control colors.
/// </summary>
public static class SkinSettings
{
public static Color FormBackColor { get set }
public static Color FormForeColor { get set }
public s
Platform: |
Size: 17408 |
Author: MahdiAttar |
Hits:
Description: 自定义groupbox,改变header的样式,设置groupbox四个角为圆角,适合初学者使用-Custom groupbox, change the style of the header, set groupbox four corners rounded corners, suitable for beginners to use
Platform: |
Size: 1985536 |
Author: 朱帅 |
Hits:
Description: 一个软件界面,其中包括一些常用按键的使用。button textbox groupbox datagridview等。-A software interface, including some commonly used keys. button textbox groupbox datagridview like.
Platform: |
Size: 1234944 |
Author: 侯锐 |
Hits:
Description: cxGroupbox修改可以设置顶部显示(cxGroupbox The settings can be displayed at the top)
Platform: |
Size: 38912 |
Author: KerwinZheung
|
Hits:
Description: Simple OCX component, GroupBox with other properties.
Platform: |
Size: 349184 |
Author: Niki31
|
Hits:
Description: GroupBox中的控件随着GroupBox的移动或隐藏而移动或隐藏,()
Platform: |
Size: 103424 |
Author: omplepeitatigb |
Hits: