GroupBox HeaderText

3 posts, 1 answers
  1. Hendrik Johns
    Hendrik Johns avatar
    10 posts
    Member since:
    Aug 2005

    Posted 02 Jan 2013 Link to this post

    Hi,

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

    /Hendrik
  2. Answer
    Peter
    Admin
    Peter avatar
    1148 posts

    Posted 05 Jan 2013 Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Hendrik Johns
    Hendrik Johns avatar
    10 posts
    Member since:
    Aug 2005

    Posted 05 Jan 2013 Link to this post

    Thanks Peter,

    Just what I was looking after :)
Back to Top