NET岛

导航

窗体级验证

 

bool ispass=true;
foreach (System.Windows.Forms.Control aControl in this.Controls)
{
  
//发现验证错误
  ispass=false
  aControl.Focus();
  
break;  
}


if (ispass==false

  
//验证错误动作
  return;
}

posted on 2005-08-17 11:54  左佩玉  阅读(334)  评论(0编辑  收藏  举报