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 ........
Loading
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.
Kirtan PatelPosted Dec 14, 2009, 6:49 AM
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);
}
}