Top-level Exception Handling in Windows Forms Applications

Introduction In .NET exception handling has become a much simpler issue than in previous programming languages. For example, in many older languages it was considered good practice to put an exception handler in every routine, and also to return a value to indicate success or failure from each routine. In .NET Windows Forms applications these … Continue reading Top-level Exception Handling in Windows Forms Applications

Advertisements

Top-level Exception Handling in Windows Forms Applications – Code Listing 1

  This code listing is available for download.    This is a very basic code example of how to use the ThreadException event to handle exceptions occurring anywhere on the main GUI thread in a Windows Forms application.  My blog article 'Top-level Exception Handling in Windows Forms Applications' discusses this in more detail.   From … Continue reading Top-level Exception Handling in Windows Forms Applications – Code Listing 1