【问题标题】:Change the caption color of a groupbox but not the text in the groupbox?更改组框的标题颜色但不更改组框中的文本?
【发布时间】:2015-01-26 12:10:42
【问题描述】:

我的 winform 上有一个组框,我想更改标题/标题的颜色,但不使用 ForeColor,因为我不想更改组框中的文本。

【问题讨论】:

标签: c# winforms groupbox


【解决方案1】:

您可以将RadioButton 包裹在另一个Panel 中,而您将Dock Fill 包裹在GroupBox 中。然后将那个PanelForeColor设置为SystemColors.ControlText

这可以防止RadioButtonForeColor 派生自GroupBox

【讨论】:

    猜你喜欢
    • 2010-10-30
    • 2023-02-24
    • 1970-01-01
    • 1970-01-01
    • 2014-12-24
    • 1970-01-01
    • 1970-01-01
    • 2016-07-31
    • 2021-02-09
    相关资源
    最近更新 更多