作者:撩人过得更好 | 来源:互联网 | 2023-10-16 20:54
privatevoidbtn清空_Click(objectsender,EventArgse){foreach(Controlcontrolinthis.Controls){if(
private void btn清空_Click(object sender, EventArgs e)
{
foreach (Control control in this.Controls)
{
if (control is TextBox)
{
((TextBox)control).Clear();
}
}
}