For dyanamic radio button
ceate a dyanamic radio buttons in a group box?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Kunal VaishyaPosted May 4, 2012, 6:02 AM
Lajapathy ArunPosted May 4, 2012, 4:50 AM
public partial class MyUserControl : UserControl
{
public MyUserControl()
{
InitializeComponent();
}
public void AddRadioButton(int count)
{
for (int i = 0; i <= count; i++)
{
RadioButton rdo = new RadioButton();
rdo.Name = "RadioButton" + i;
rdo.Text = "Radio Button " + i;
rdo.Location = new Point(5, 30 * i);
this.Controls.Add(rdo);
}
}
}
Mahak GuptaPosted May 4, 2012, 3:53 AM