Well that gives me a work round. But I want the method that opens the form
to catch the exception.
Like I said, when I run my App through the IDE the exceception is caught.
When I run the EXE the exception is unhadles. I want the EXE to catch the
exception as well. Its the same code so why should it behave differently??
Regards,
Nick
"Herfried K. Wagner [MVP]" wrote:
"chopsnsauce" <ch*********@discussions.microsoft.com> schrieb: I'm opening a form that Throw's an error in the Load event and the method
thant opens the form has a try..Catch to Catch the error that is thrown
in
the load event.
This works fine running through the design-time enviroment. But if I run
the .EXE it says Unhandled Exception and quits. WHY?
Take a look at 'Application.ThreadException' in the documentation.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>