I have two separate combo boxes and I would like to create one function to populate them.
I would like to be able to pass a combobox control and use it.
I.E.
void LoadDD( )
{
string[] dirs = Directory.GetDirectories("\\Family");
foreach (string dir in dirs)
{
.Items.Add(new ListItem(GetName(dir), dir));
}
}
Any ideas??