Hi Guys,
How can I show the list of some people in combo box with the help of Arralist only by click on one button in C# code.
Please Help me ........
Usinng of ArrayList ......
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Kirtan PatelRank #292 · 8.6K reputationPosted Dec 14, 2009, 1:49 AM EST
Friend, Here is your Solution ..
please check "do you like this answer" check box if it helps you :)
private void button2_Click(object sender, EventArgs e)
{
ArrayList List = new ArrayList();
List.Add("Kirtan");
List.Add("Ankit");
List.Add("Any Person");
comboBox1.Items.Clear();
foreach (string str in List)
{
comboBox1.Items.Add(str);
}
}