How can I change the border thickness of a Groupbox on a windows form in C#?

23,246

Solution 1

You'll need to make a custom GroupBox control. See The Grouper - A Custom Groupbox Control

Solution 2

GroupBox is a custom drawn .Net control. You will need to hook into the Paint event, or derive from the GroupBox and override the OnPaint method, determine where the existing lines are being drawn and then draw overtop of them with wider lines to achieve the thicker border. Or you can create a custom control and paint everything yourself.

Share:
23,246
asdasdad
Author by

asdasdad

C# Developer

Updated on June 13, 2020

Comments

  • asdasdad
    asdasdad about 4 years

    I didn't find any solution that helped me on the older questions on SO... Is it possible to make them thicker or just more visible by changing the color? If yes, some code would be great... or just a hint how to do it...

  • asdasdad
    asdasdad about 12 years
    ok so do you have a link mybe? I will search and try myself but if you have a specific site it would be a great help