private void Form1_Load(object sender, EventArgs e)
{
ArrayList arrayList = new ArrayList();
arrayList.Add(“Customer1”);
arrayList.Add(“Customer2”);
arrayList.Add(“Customer3”);
arrayList.Add(“Customer4”);
arrayList.Add(“Customer5”);
//Iterating through items - Using foreach loop
string str = string.Empty;
foreach (string strName in arrayList)
{
str += strName + “\n”;
}
MessageBox.Show(str);
Copyright © 2012 - All Rights Reserved - VKInfotek.com