Saturday, October 4, 2014

Adding Radio Button to a Form

10:36 AM - By azeheruddin khan 0

This example adding Radio Button on a Windows Form programmatically.

private void btnCreateRadioButton_Click(object sender, EventArgs e)
            string[] stringArrayOption = (txtOption.Text.Trim()).Split(',');
            int intLength = stringArrayOption.Length;

            System.Windows.Forms.RadioButton[] radioButtons = new 

            for (int i = 0; i < intLength; ++i)
                radioButtons[i] = new System.Windows.Forms.RadioButton();
                radioButtons[i].Text = stringArrayOption[i];
                radioButtons[i].Location = new System.Drawing.Point(100, 100 + i * 20);

About the Author

I am Azeheruddin Khan having more than 6 year experience in c#, and ms sql.My work comprise of medium and enterprise level projects using and other Microsoft .net technologies. Please feel free to contact me for any queries via posting comments on my blog,i will try to reply as early as possible. Follow me @fresher2programmer
View all posts by admin →

Get Updates

Subscribe to our e-mail newsletter to receive updates.

Share This Post



© 2014 Fresher2Programmer. WP Theme-junkie converted by Bloggertheme9
Powered by Blogger.
back to top