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: Code: private TextBox[] myArray = new TextBox[2]; and then assign the TextBoxes to the array in the Load event handler: Code: this.myArray[0] = this.textbox1; this.myArray[1] = this.textbox2; Then you can refer to the TextBoxes via the array elements anywhere else in your code.
private TextBox[] myArray = new TextBox[2];
this.myArray[0] = this.textbox1; this.myArray[1] = this.textbox2;
thanks for the help.
Forum Rules