Hi,
Code will goto Catch statement when an exception was thrown. For example, the bellow codes will throw an exception says that convert from string to int is not valid.
Try
Dim j As String = "test"
Dim i As Integer = CInt(j)
Catch ex As Exception
MsgBox(ex.Message.ToString)
Throw ex
End Try
Reference link: Try...Catch...Finally Statement (Visual Basic).
Best regards,
Shanks Zen
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help.