我就是在SystemIdle事件中设定了
If LastInputTickCount > 6000 Then
If CurrentTable.Grid.Findform.Visible = True '判断显示时
CurrentTable.Grid.Findform.Visible = False '隐藏
Forms("系统_锁定屏幕").Open()
End If
End If
以上这段代码,
最先报出的错误是
此主题相关图片如下:1.jpg

“系统_锁定屏幕”这个窗口代码如下
Dim pwd As String = e.Form.Controls("tpwd").Value
If pwd = Nothing Then
MessageBox.Show("解锁密码不能为空!","提示",MessageBoxButtons.OK,MessageBoxIcon.Warning)
Return
End If
If EncryptText(pwd,"l_wgdeh","13qaz2w$x3eda9dc") <> Vars("Userpwd") Then
MessageBox.Show("解锁密码不正确,请重新输入!","提示",MessageBoxButtons.OK,MessageBoxIcon.Warning)
Return
End If
CurrentTable.Grid.Findform.Visible = True '隐藏
e.Form.Close()
出的错误

此主题相关图片如下:tu.jpg