hi,
I have textbox1, textbox2 at design time how to make this textbox into array?
popskie
Printable View
hi,
I have textbox1, textbox2 at design time how to make this textbox into array?
popskie
You cannot actually do it at design time as such. You need to declare your array as a member variable:and then assign the TextBoxes to the array in the Load event handler:Code:private TextBox[] myArray = new TextBox[2];
Then you can refer to the TextBoxes via the array elements anywhere else in your code.Code:this.myArray[0] = this.textbox1;
this.myArray[1] = this.textbox2;
thanks for the help.