Treatment of shape elements with large numbers
Let's say there are a number of elements on the form:
label2etc. The user introduces the field number he wants to change, and its meaning. How to turn to a certain number field without using
The container (form, panel, etc.) containing marks (label) has a characteristic. https://msdn.microsoft.com/ru-ru/library/system.windows.forms.control.controls(v=vs.110).aspx?cs-save-lang=1&cs-lang=cpp#code-snippet-1 returning a collection of subsidiary management elements. Make this set a type cycle.
foreachAnd you can access every mark in turn.
If you need a specific number mark, it'll be appropriate to create a mass (or even a dictionary)
Labelfill it once with the marked marks and then access the index.
There's another option: https://msdn.microsoft.com/en-us/library/system.windows.forms.control.controlcollection.find(v=vs.110).aspx?cs-save-lang=1&cs-lang=cpp#code-snippet-1 on the list that returns the above properties
Controlsand use the name directly.
label2etc. Well, there are plenty of options.