Finding controls by name in .NET 1.1 forms

111 views Asked by At

I'm working on some legacy WindowsForms application written in VB.NET using the framework 1.1 and I'm trying to retrieve a control from the ControlCollection using its name instead of his index.

In the following versions of the framework I can use the Find() method but it seems that in 1.1 it's not available. I wrote a while statement that loops the entire ControlCollection until it finds the control whose name is the one I need, but I think it's a very inefficient approach. Is there any better way to do it?

0

There are 0 answers