Reputation: 33
TextBox[,] tb = new TextBox[x,y];
How do I read value from TextBox[0,0] for example ?
Upvotes: 0
Views: 183
Reputation: 223187
Use the Text property. Same as for a single TextBox.
Console.WriteLine(tb[0,0].Text);
Remember to access it with variable name tb as you have defined in your code. It may be better to name your TextBox array to something more understandable.
tb
Upvotes: 3