Wednesday, 26 November 2014

How to add items of array to combobox using c#?

  1. ArrayList sampleArray = new ArrayList();
  2. sampleArray.Add("India");
  3. sampleArray.Add("China");
  4. sampleArray.Add("USA");
  5. sampleArray.Add("UK");
  6. sampleArray.Add("Japan");
  7. comboBox1.DataSource = sampleArray;

0 comments:

Post a Comment