BeforeShowErrorMessage 事件
static ptime As Date = Nothingstatic count As Integer = 0Dim sp As TimeSpan = Date.now - ptimeIf sp.TotalSeconds <= 1 Then count += 1 If count > 3 Then e.cancel = True End IfEnd Ifptime = Date.now