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

RabButton in RadGroupbox or GroupBox

4 Answers 176 Views
Buttons, RadioButton, CheckBox, etc
This is a migrated thread and some comments may be shown as answers.
Sven Nilsen
Top achievements
Rank 1
Sven Nilsen asked on 29 Mar 2010, 05:42 PM
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?

4 Answers, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 01 Apr 2010, 02:50 PM
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.
0
Alfonsina
Top achievements
Rank 1
answered on 04 Jul 2012, 07:08 AM

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

0
Nikolay
Telerik team
answered on 04 Jul 2012, 05:04 PM
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 >>
0
Alfonsina
Top achievements
Rank 1
answered on 05 Jul 2012, 06:45 AM

Hello Nikolay,

Thanks you very much, its working !!

kind regards,

Alfonsina

Tags
Buttons, RadioButton, CheckBox, etc
Asked by
Sven Nilsen
Top achievements
Rank 1
Answers by
Victor
Telerik team
Alfonsina
Top achievements
Rank 1
Nikolay
Telerik team
Share this question
or