I have a very large code so I can't put it here...
For example I have textBox1, I want to change its text. Can I use something like:
<textBox+"1">.Text="Changed"?
I really need it because I will have to use "foreach" loop instead which slows the performance...

Thanks in advance!

Recommended Answers

All 4 Replies

There is the Name property of a textbox.
But it seems you need an array or list of textboxes. Is this correct?

Yup but that slows the performance a lot. I'm making a software creator (which have to create programs without programming) I can use foreach loop but it will take about 10 seconds to do it... So I need something like this..

If it takes 10 seconds to iterate through your controls, you have other issues that need to be resolved.

If it takes 10 seconds to iterate through your controls, you have other issues that need to be resolved.

Yuo but they can add more controls (the users) which make the function use more time...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.