This event handler allows an event to
be raised whenever a thread
exception occurs. The
System.Windows.Forms.Application.ThreadException
property allows you to set one of these handlers, which takes the
sender and ThreadExceptionEventArgs as arguments.
The ThreadExceptionEventArgs object contains the
exception raised.
public delegate void ThreadExceptionEventHandler(object sender, ThreadExceptionEventArgs e);