System.Windows.Forms.ApplicationContext.OnMainFormClosed Method

Calls ApplicationContext.ExitThreadCore, which raises the ApplicationContext.ThreadExit event.

Syntax

protected virtual void OnMainFormClosed (object sender, EventArgs e)

Parameters

sender
The object that raised the event.
e
The EventArgs that contains the event data.

Remarks

The default implementation of this method calls ApplicationContext.ExitThreadCore.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0