Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / February 2007

Tip: Looking for answers? Try searching our database.

Global Exception Handling

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Simon Harvey - 12 Feb 2007 19:45 GMT
Hi All,

I'd like to be able to display a nice custom form to the user when any
exceptions occur within my Windows Forms application. In asp.net I would
use the global exception event that yuo can handle in global.asax. Is
there something similar in Windows Forms?

If there isnt something similar, how could I go about catching
exceptions without having to try catch everything I do?

Would a try catch in the Main() method work?

Many thanks

Simon
Michael C - 12 Feb 2007 21:03 GMT
> Hi All,
>
[quoted text clipped - 5 lines]
> If there isnt something similar, how could I go about catching exceptions
> without having to try catch everything I do?

Type Application.ThreadException +=

and follow the intellisence (or push F1)

Michael
Simon Harvey - 13 Feb 2007 15:26 GMT
Cool - I thought there was something like that.

Many thanks for your help

Kindest Regards

Simon

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.