用一个vars变量标记,如
vars("有错") = true
return
调用的时候
vars("有错") = false
Dim bt1 As WinForm.Button = e.Form.controls("Button1")bt1.PerformClick()
If vars("有错") = true then
End If
'后续代码