How can I get rounded corners in a GroupBox in my form? Is there any option in the property tab?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
When visual styles are enabled for your application and the
FlatStyleproperty is set to “System”, the group boxes look like they have slightly rounded corners, but it’s probably no more than 3 to 5 degrees. So I suppose this is not what you’re looking for.Unfortunately, there’s no built-in way to customize its degree of roundedness. The only real solution is to use a custom control. You can either inherit off of the existing
GroupBoxcontrol and override itsPaintevent to draw the borders yourself, or you can use one of these existing controls: