|
-
Jul 9th, 2012, 03:24 PM
#1
Thread Starter
Junior Member
Re: How to disable .NET error messages (just terminate an app)
 Originally Posted by .paul.
use a try, catch block + handle the exception. you can close the app in the catch statement
That's what I tried to do actually... I am trying to do Application.Restart
and then the above .net error shows up with an "Access Denied" message...
-
Jul 9th, 2012, 04:27 PM
#2
Re: How to disable .NET error messages (just terminate an app)
The following allows you (if you care too) not show a dialog and also not to crash upon the current exception unless that one generates another unhandled exception. I do not advise this but if that is your choice so be it.
http://code.msdn.microsoft.com/Deali...ndled-9b933818
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|