RobertMottram
Programmer
I have just moved from VB 6 to VB.NET and finding a number of things have changed. I know that most of the VB 6 functions can be called using the compatability functions, but as I write new code I think it would be better to use the new methods.
The problem I am have is finding a way around not having Control Arrays. I want to be able to added controls to my form in the program. When this form loads I added a number of these controls (all the same), but I don't know how many until this point in the code.
One of these is a text box, so in VB 6 I placed a hidden text box on the form and made it part of an array. This means in my code I can added to the array with arraytextbox.load to add new ones. Then just un hide them.
How can I do this in VB.NET. I don't want to add the controls to the form until run time as I never know how many I will need.
Also I want them all to run the same functions.
Thanks
Robert
The problem I am have is finding a way around not having Control Arrays. I want to be able to added controls to my form in the program. When this form loads I added a number of these controls (all the same), but I don't know how many until this point in the code.
One of these is a text box, so in VB 6 I placed a hidden text box on the form and made it part of an array. This means in my code I can added to the array with arraytextbox.load to add new ones. Then just un hide them.
How can I do this in VB.NET. I don't want to add the controls to the form until run time as I never know how many I will need.
Also I want them all to run the same functions.
Thanks
Robert