Answer the question
In order to leave comments, you need to log in
How to iterate through ComboBoxes?
Let's say I have a dozen ComboBoxes (startCompound1, startCompound2, startCompound3, etc.) and I need to go through and add elements to each.
I tried something like this but it didn't work
for (int i = 1; i <= 10; i++) {
GroupBox1.Controls("startCompound" + i.ToString()).Items.Add(prop.name);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question