Foxtable(狐表)用户栏目专家坐堂 → BeforeShowErrorMessage


  共有2224人关注过本帖平板打印复制链接

主题:BeforeShowErrorMessage

帅哥哟,离线,有人找我吗?
huhu
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:五尾狐 帖子:1165 积分:8129 威望:0 精华:0 注册:2015/3/30 10:44:00
BeforeShowErrorMessage  发帖心情 Post By:2018/1/31 14:09:00 [只看该作者]

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?

 回到顶部