日期:2014-05-18  浏览次数:20778 次

清空界面输入的内容,帮忙看看我的代码的问题在哪儿,那是没有执行!
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是什么