How to handle unhandled exceptions in Windows Forms

Here’s some sample code for catching unhandles exceptions in multi-thread Windows Forms application. Pretty cool.