Rounded Corners in GroupBox Management

How can I get rounded corners in a GroupBox in my form? Is there an option on the properties tab?

+3
source share
2 answers

If visual styles are enabled for your application and FlatStyleset to System, group fields look as if they have slightly rounded corners, but probably no more than 3-5 degrees. Therefore, I believe that this is not what you are looking for.

Unfortunately, there is no built-in way to adjust its roundness. The only real solution is to use a custom control. You can either inherit an existing control GroupBox, or override its event Paintto draw borders yourself, or you can use one of these existing controls:

+4
source

Take a look at these open source elements: http://roundedgroupbox.codeplex.com/

0
source

Source: https://habr.com/ru/post/1777605/


All Articles