C1Themes: How-to change the border color of a GroupBox

Posted by: jerhardt on 14 October 2021, 11:42 am EST

  • Posted 14 October 2021, 11:42 am EST

    Hi,

    we’re currently implementing the C1Themes. As a basis we use the standard themes, that are provided by ComponentOne.

    When we select for example the VS2013Tan theme in the C1ThemeDesigner and select WinForms in the Theme tree, then we can see the sample Form with the WinForms controls. There are several standard GroupBoxes on the Form, but the border of the GroupBoxes are very hard to spot. They are visible, but in a light gray on the light tan background. Unfortunately I’ve not found the correct place in the Theme tree, where I can change this border color of the GroupBox. Could someone give me a hint?

    Thanks in advance and best regards,

    Juergen

  • Posted 15 October 2021, 3:29 am EST

    Hi Juergen,

    this is not possible. This question can be found on the web, and the only solution is to add custom Paint code: https://stackoverflow.com/questions/76455/how-do-you-change-the-color-of-the-border-on-a-group-box

    The only workaround would be if C1 created a custom “C1GroupBox” control (as they did for C1Label or C1TextBox).

    Best regards

    Wolfgang

  • Posted 15 October 2021, 6:07 pm EST

    Hi Wolfgang,

    thanks a lot! I had the hope, that there might be an easier solution, that switching to Themes from the old VisualStyles wouldn’t be so painful, but ok - I’m going to create my own GroupBox, that will handle the Themes.

    I would, however, vote for a C1GroupBox from ComponentOne in a future release :slight_smile:

    Best regards,

    Juergen

  • Posted 18 October 2021, 2:52 am EST

    Hi Juergen,

    We have posted a request for C1GroupBox to the dev team on your behalf. We will let you know when we have any information.

    [C1WIN-25899]

    If you have any other issues, please let us know.

    Regards

    Avnish

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels