Passing controls
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??
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Andrzej WegierskiRank #1,729 · 877 reputationPosted Apr 13, 2004, 9:43 PM EDT