N
N
Nikita Verdinsky2020-06-03 12:12:10
C++ / C#
Nikita Verdinsky, 2020-06-03 12:12:10

How to pass the contents of duplicated comboboxes to an array?

I have a form with a flowLayoutPanel that is looped through with usercontrol. There is a combobox on the usercontol. The question is, how do I get the contents of all comboboxes into an array?
Added:
UserControl
5ed7717546370223265417.png
Form
5ed7725632b89152842136.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Ananiev, 2020-06-03
@Nie_yar

Make a method in UserControl that will return a list of combobox elements. Then go through all the UserControls in the floatLayout and read their list of elements, adding everything to the stringlist along the way (or to an array, but a sheet is preferable).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question