请编程遍历页面上所有TextBox控件并给它赋值

20 查阅
请编程遍历页面上所有TextBox控件并给它赋值为string.Empty?

参考答案:

正确答案:
答:
foreach (System.Windows.Forms.Control control in this.Controls)
{
if (control is System.Windows.Forms.TextBox)
{
System.Win

遍历