Why do I get an error message

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Why do I get the following error message. If I click on a datagrid after
clicking addnew,
an unhandled exception has occured in your application. If you click
continue, the application will ignore this error and attempt to continue. If
you click quit, the aplication will be shut down immediately.
Index was outside the bounds of the array.


Here is the code

Private Sub dgrd_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Handles dgrd.Click
Try

Catch ex As IndexOutOfRangeException

Catch ex As Exception
MsgBox(ex.GetType.ToString & s & ex.Message & s & ex.HelpLink &
s & ex.StackTrace & s & ex.Source & s & "The form will be closed") '& s &
ex.TargetSite)
'Me.Close()
End Try
It seems to me I handled the exception
dennist685
 
Back
Top