62,268
社区成员
发帖
与我相关
我的任务
分享
using System.Collections.Generic;
List<string> l = new List<string>();
foreach(Control c in this.Panel1.Controls)
{
TextBox txt = c as TextBox;
if (txt!=null)
{
l.Add(txt.Text);
}
}