前两句发生错误就停止执行,什么都不处理,不弹窗口,,
该怎么写?
try
你的代码
catch
exit sub
end try
可以用Try
无视错误用 On error resume next
try
catch
finally
Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
Try
Dim count As Integer
count = ""
Catch ex As Exception
RemoveHandler Me.Timer1.Tick, AddressOf Timer1_Tick
End Try
End Sub