Try catch in vb.net
=================================================================
Try
'your code here
Catch ex As Exception
MessageBox.Show(ex.Message) 'if any error message show
End Try
================================================================
Try
Dim i As Int16 = "lk" 'for cheeking
Catch ex As Exception
MessageBox.Show(ex.Message) 'error message
End Try
=================================================================
No comments:
Post a Comment