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

GroupBox HeaderText

2 Answers 37 Views
This is a migrated thread and some comments may be shown as answers.
Hendrik Johns
Top achievements
Rank 1
Hendrik Johns asked on 02 Jan 2013, 09:12 PM
Hi,

Is there a way where I can override the font size on HeaderText property and remove the borders around the RadGroupbox?

/Hendrik

2 Answers, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 05 Jan 2013, 08:08 AM
Hi Hendrik,

Thank you for the writing.

You can set the RadGroupBox's Font property as follows:

radGroupBox1.Font = new System.Drawing.Font(radGroupBox1.Font.FontFamily, 25);
Where the 25 is the new size.

This line will remove the border around the RadGroupBox:
radGroupBox1.GetChildAt(0).GetChildAt(0).GetChildAt(1).Visibility = Telerik.WinControls.ElementVisibility.Hidden;

I hope this helps.

Regards,
Peter
the Telerik team
Q3'12 SP1 of RadControls for WinForms is out now. See what's new.
0
Hendrik Johns
Top achievements
Rank 1
answered on 05 Jan 2013, 11:07 PM
Thanks Peter,

Just what I was looking after :)
Asked by
Hendrik Johns
Top achievements
Rank 1
Answers by
Peter
Telerik team
Hendrik Johns
Top achievements
Rank 1
Share this question
or