I have this PROBLEM with controls collection:

The old VB 6.0 syntax was:

MyStr = me.controls("button1").text

VB .NET doesn't function in this way, because in .NET
I must know the index of the control! I need to use the
STRING NAME of the control to address the object, because
my target is doing something like this:


for i = 1 to 10
MyStr(i) = me.controls("button" & i ).text
next i


if I use this:

MyStr = me.controls(IndexOf(button1)).text

I have again the same problem: cannot use the STRING NAME
of the object!


--------
Gigaworld snc - Servizi Informatici
Via Affatati 32
70043 - Monopoli (Ba) - Italy
Tel./Fax (+39) 080.937.14.46
Internet: www.gigaworld.it