111,118
社区成员
发帖
与我相关
我的任务
分享
public static class ComMethod
{
public static void ClearAllTextBox(this Form form)
{
foreach (Control control in form.Controls)
{
if (control.GetType().ToString().Contains("TextBox"))
{
((TextBox)control).Text = "";
}
}
}
}