Jump to content


Check out our Community Blogs

mohax

Member Since 24 Jul 2012
Offline Last Active Aug 07 2012 12:48 AM
-----

#634527 Add Items In The Combobox

Posted by mohax on 25 July 2012 - 12:04 AM

private void radioButton2_CheckedChanged(object sender, EventArgs e)
{
if (radioButton2.Checked == true)
{
cbb_NumberofDaysofAutonomy.Items.Add(6);
cbb_NumberofDaysofAutonomy.Items.Add(8);
cbb_NumberofDaysofAutonomy.Items.Add(10);
}
}

private void radioButton1_CheckedChanged(object sender, EventArgs e)
		{
			if (radioButton1.Checked == true)
			{
				cbb_NumberofDaysofAutonomy.Items.Add(1);
				cbb_NumberofDaysofAutonomy.Items.Add(2);
				cbb_NumberofDaysofAutonomy.Items.Add(3);
				cbb_NumberofDaysofAutonomy.Items.Add(4);
				cbb_NumberofDaysofAutonomy.Items.Add(5);
			}
		}

  • 1


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download