This is a migrated thread and some comments may be shown as answers.

GroupBox header size

5 Answers 315 Views
Buttons, RadioButton, CheckBox, etc
This is a migrated thread and some comments may be shown as answers.
Lily
Top achievements
Rank 1
Lily asked on 17 Feb 2011, 06:48 PM
I have RadGroupBox on my page. GroupBoxStile is set to Office. How I can change the height of the header? The icon I use is bigger than the default size.
Thank you
Lily

5 Answers, 1 is accepted

Sort by
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 17 Feb 2011, 09:03 PM
Hi Lily,

You can change the header in the following way

GroupBoxHeader element = (GroupBoxHeader)this.radGroupBox1.GroupBoxElement.Children[1];
element.AutoSize = false;
element.Size = new Size(element.Size.Width, 36);

hope that helps
Richard
0
Lily
Top achievements
Rank 1
answered on 17 Feb 2011, 09:32 PM
I tried this code, it does not work. The header disappeared complitely, the size of the group box is changed.
Lily
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 17 Feb 2011, 09:37 PM
Hi Lily,

Attached is a screenshot of how the code affected the RadGroupBox when  the style is set to
this.radGroupBox1.GroupBoxStyle = RadGroupBoxStyle.Office;

This is for Q3 2010 SP1 (the latest version) Are you using an earlier version? If so, I would advise to upgrade as there are many enhancements, fixes and new products available in the latest version.

Please let me know if I can help further
Thanks
Richard
0
Lily
Top achievements
Rank 1
answered on 17 Feb 2011, 10:23 PM
It was my error, I placed the code in the incorrect place
Thank you
Lily
0
Richard Slade
Top achievements
Rank 2
answered on 17 Feb 2011, 10:34 PM
You're welcome. Please remember to mark as answer too.
Many thanks
Richard
Tags
Buttons, RadioButton, CheckBox, etc
Asked by
Lily
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Lily
Top achievements
Rank 1
Share this question
or