Raises the System.WinForms.Application.ThreadException event.
[Visual Basic] Public Shared Sub OnThreadException( _ ByVal t As Exception _ ) [C#] public static void OnThreadException( Exception t ); [C++] public: static void OnThreadException( Exception* t ); [JScript] public static function OnThreadException( t : Exception );
This event allows an application to intelligently handle an exception. It is called by a window procedure when it receives a thread exception. You should attach your event-handling methods to this event.
Raising an event invokes the event-handling method through a delegate. For an overview, see TBD.
Notes to Inheritors: When overriding OnThreadException in a derived class, be sure to call the base class's OnThreadException method.
Application Class | Application Members | System.WinForms Namespace | AddOnThreadException