legend1337
legend1337

Reputation: 33

how to read a Textbox?

TextBox[,] tb = new TextBox[x,y];

How do I read value from TextBox[0,0] for example ?

Upvotes: 0

Views: 183

Answers (1)

Habib
Habib

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.

Upvotes: 3

Related Questions