Hi All
Ok i looked at all replys, thanks for sending them so quick. To answer the
last one, when i use the on error resume next it still ends the program. I
didnt mention earlier that this program is a service. As a bit of further
background what im trying to trap is a dll file used for licesneing control,
basically i will use the dim statement to reference it and under vb6 this
was fine because i could on error resume next. But under .NET i did try the
following:
Try
Dim MyObj As New Project1
Catch ex As Exception
MsgBox("LicFail", MsgBoxStyle.Critical, "LicFail")
Finally
End
End Try
But it does the same as before, and doesnt disaply the message box. Is it
possible to do what i used to under Vb6 in .Net ? Many thanks all
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:#3**************@TK2MSFTNGP15.phx.gbl...
"Jm" <ja*****@ihug.com.au> schrieb: Im a bit of a newbie to VB.NET. Under vb6 if i used a class library DLL
and
it wasnt available i could use the on error resume next to get past the
code
that calls it and trap it afterwards and display a custom error
messageor move on. I was wondering if this is possible in VB.NET, it seems to just
end
the program with a vb frameworkish error. Basically my code says:
Does this error even occur when you use 'On Error Resume Next'?
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>