清空界面输入的内容,帮忙看看我的代码的问题在哪儿,那是没有执行!
- C# code
void ClearForm() { foreach (Control c in this.Controls) { if ((c is TextBox) || (c is RichTextBox)) { c.(str[解决办法]
foreach (Control c in this.Controls)
加断点看,顺便用个变量看看c的id是什么