阅读背景:

我如何创建一个方法类型bool并循环控件来决定案例?

来源:互联网 
private bool LoopOverControls(bool reset, bool checkIfEmpty)
        {
            bool results;
            foreach (Control ctrl in this.Controls)
            {
                if ((ctrl as TextBox) != null)
                {
                    if (reset == true)
                        (ctrl as TextBox).Text = "";
                    if (checkIfEmpty == true)
                        results = true;
                }
            }
            return results;
        }
private bool LoopOverControls(bool reset, bool 



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: