-----Original Message-----
Dinio,
first of all, you have to decide how many textBoxes the array will contain
(if this is unknown, use an ArrayList or other collection)
protectd TextBox[] mygroup1 = new TextBox[10];
after that, you have to initialize (instanciate) each textbox:
for (int i=0;i<mygroup1.Length;i++)
{
mygroup1
= new TextBox();
}
you can also initialize the array and dimension at the same time:
protected TextBox[] mygroup1 = new TextBox[] {new TextBox (), new TextBox(),
.... };
thats not a good idea since you probably want to assign values to the
various TextBox propeties of each TextBox object (as you can do in the for
loop).
Picho
hi to all.
Anybody knows how can i create an array of textboxes..
something like:
protected TextBox[] mygroup1
Thanks
Dinio Aynama
.