Hey in vb 6.0 you could go.
on error goto ErrHand
ErrHand: Msgbox "Error has occured " & Error
this gave the message box and had the actual error in it also does anyone know if this can be done in vb.net ?
Any help would be great
Thanks
Sean
Printable View
Hey in vb 6.0 you could go.
on error goto ErrHand
ErrHand: Msgbox "Error has occured " & Error
this gave the message box and had the actual error in it also does anyone know if this can be done in vb.net ?
Any help would be great
Thanks
Sean
You should learn the Try..Catch method used in .NET (although the old On Error method should still work)
VB Code:
Try 'code to test here Catch ex As Exception Msgbox("Error has occured " & ex.Message) End Try
thanks