Why do I get an error message

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top