Hi All,

I am designing a form that has many controls, eg text boxes. When I did the same thing with VB6 I used Control Arrays and it worked fine. It also meant that if I wanted to reference any of the controls they existed on the form already.

Using VB.NET there is no facility for Control Arrays so I add the controls using code to save the painful task of retyping each name etc. However as they are not actually placed on the form until the code is run they cannot be referenced in any instance other than the Public Sub they are created in. I am getting a "[control name] is not a member of the [form name]. It also seams to suck the resources out of the PC whilst loading all the controls.

I would prefer not to have set up all the controls individually.

Any ideas.

Cheers
Ozman.