I need to add listboxes to a windows forms application (C#) at application runtime. the issue I am having is I do not know how many boxes will be added... The application is going to check a specific path for dir's, and each dir currently listed needs to be a separate listbox... is there a way to do this? I currently am attacking it by creating 7 listboxes and making them visible or non visbile based on number of Dir's... but theres a chance of more than 7...
any help is much appreciated!
thanks
this.Controls.Add(new ListBox());