RabButton in RadGroupbox or GroupBox

5 posts, 0 answers
  1. Sven Nilsen
    Sven Nilsen avatar
    2 posts
    Member since:
    May 2009

    Posted 29 Mar 2010 Link to this post

    Hey,

    I have a usercontrol with 3 groupboxes. All boxes have to or three RabButtons. One of them scale buttons to big at runtime. When adding new buttons in a new groupbox the same thing happens again. Both groupbox and radbutton looks ok in design, but at runtime buttons scale to big. Buttons added directly to the usercontrol works fine.

    I have tried both System.Windows.Forms.GroupBox and RadGroupBox, with same result.

    Any idees?
  2. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 01 Apr 2010 Link to this post

    Hi Sven Nilsen,

    Thank you for the question.

    This looks like an issue we previously experienced which turned out to be related to the windows forms anchoring mechanism. Please try different anchoring settings or turn anchoring off if suitable. We are currently researching where exactly the problem comes from and will address it once we find it, if possible.

    Thank you for your understanding.

    Kind regards,
    Victor
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Alfonsina
    Alfonsina avatar
    13 posts
    Member since:
    May 2012

    Posted 04 Jul 2012 Link to this post

    Hello Telerik Team,

    I´m trying to add a RadLabel into a RadGroupBox programatically like this:

    RadGroupBox time = new RadGroupBox();
    time.Text = "Zeit Wahl";
    time.Left = 20;
      time.Top = 280;

    RadLabel labelTime = new RadLabel();
    labelTime.Text = "Zeitintervall von/bis wählen:";
    labelTime.Left = 20;
    labelTime.Top = 290;

    time.Controls.Add(labelTime);

    panelTypeCharts.Controls.Add(time);

    But it doesnt work for me, I see the groupBox but the label is not there, any suggestions?

    Thanks very much

    Kind regards,

    Alfonsina

  5. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 04 Jul 2012 Link to this post

    Hi Alfonsina,

    The default size of RadGroupBox is 200x100, but you are trying to set the location of the RadLabel to (20, 290) which exceeds the bounds of the default RadGroupBox. In order to see your RadLabel, you should either set the Size of RadGroupBox to a a bigger value or set the Top property of the RadLabel to a value smaller than 100.

    I hope this helps.

    Greetings,
    Nikolay
    the Telerik team
    RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
  6. Alfonsina
    Alfonsina avatar
    13 posts
    Member since:
    May 2012

    Posted 05 Jul 2012 Link to this post

    Hello Nikolay,

    Thanks you very much, its working !!

    kind regards,

    Alfonsina

Back to Top
UI for WinForms is Visual Studio 2017 Ready