Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
TextBox[,] tb = new TextBox[x,y];
例如,如何从 TextBox[0,0] 读取值?
使用文本属性。与单个文本框相同。
Console.WriteLine(tb[0,0].Text);
tb请记住使用您在代码中定义的变量名称访问它。将您的 TextBox 数组命名为更易于理解的名称可能会更好。
tb