110,549
社区成员
发帖
与我相关
我的任务
分享
private void DbgEq_CellMouseLeave(object sender, DataGridViewCellEventArgs e)//
{
DataGridView grid = (DataGridView)(sender);
try
//本来如果不加try的话,如果没有点击的情况下鼠标乱动,程序就会卡死报错
//当时写语句的时候也无法用语句判断,偷懒的方式也就用try,异常的时候就什么都不执行即可
{
frmInfo.Close();
}
catch (Exception ex)
{
string ee = ex.ToString();
}
}
if(frmInfo != null && !frmInfo.IsDisposed)
frmInfo.Close();