I need to pass information that is in listbox lstDates from one class to another, what would be a good example of doing this.
Thanks
Hi,
Copy itmes from listbox, save them to an array and pass the array to the target class.
Look into below example:
ListBox fruitList=new ListBox();
fruitList.Items.Add("Apple");
fruitList.Items.Add("Orange");
string []dest=new string[fruitList.Items.Count];
fruitList.Items.CopyTo(dest,0);
AnotherCls cls=new AnotherCls(dest);
Cheers
Balaji U