If e.Message2.indexof("一般性网络错误") > -1 Then
MessageBox.show("又是网络不畅通,要怪就怪公司的破网络吧","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
e.Cancel = True
End If
If e.Message2.indexof("SQL Server 不存在或拒绝访问") > -1 Then
MessageBox.show("由于公司的网络出现间歇性故障,导致与数据库暂时断开,请稍后再试,唉,这个破网络,我都无语了","提示",MessageBoxButtons.OK,MessageBoxIcon.Error)
e.Cancel = True
End If
If e.Message2.indexof("登录超时已过期") > -1 Then
MessageBox.show("网络不畅啊,啥破网络,都无力吐槽,请点击确定后稍后再试","提示",MessageBoxButtons.OK,MessageBoxIcon.Error)
e.Cancel = True
End If
如何做到当弹出message时,过1分钟,自动点击"确定"关闭message?