【发布时间】:2021-07-17 17:20:19
【问题描述】:
我通常使用此代码来清空表单的所有文本框,它 使用 bunifu 控件时不起作用
```
public void Clear(Control c)
{
foreach(Control ct in c.Controls)
{
if(ct.GetType() == typeof(TextBox) || ct.GetType() == typeof(ComboBox))
{
ct.Text = "";
}
if(ct.Controls.Count != 0)
{
Clear(ct);
}
}
}
【问题讨论】: