GroupBox header size

6 posts, 2 answers
  1. Lily
    Lily avatar
    19 posts
    Member since:
    Jan 2011

    Posted 17 Feb 2011 Link to this post

    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
  2. Answer
    Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 17 Feb 2011 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Lily
    Lily avatar
    19 posts
    Member since:
    Jan 2011

    Posted 17 Feb 2011 Link to this post

    I tried this code, it does not work. The header disappeared complitely, the size of the group box is changed.
    Lily
  5. Answer
    Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 17 Feb 2011 Link to this post

    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
  6. Lily
    Lily avatar
    19 posts
    Member since:
    Jan 2011

    Posted 17 Feb 2011 Link to this post

    It was my error, I placed the code in the incorrect place
    Thank you
    Lily
  7. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 17 Feb 2011 Link to this post

    You're welcome. Please remember to mark as answer too.
    Many thanks
    Richard
Back to Top
UI for WinForms is Visual Studio 2017 Ready