Application.removeOnApplicationExit

Overview | Methods | This Package | All Packages

Application.removeOnApplicationExit

Removes an applicationExit event handler that was previously added with addOnApplicationExit.

Syntax

public static void removeOnApplicationExit( EventHandler value )

Parameters

value

The com.ms.wfc.core.EventHandler delegate to remove.

Remarks

An application exit event is triggered just before the application quits. This gives an application the chance to clean up any objects that may not otherwise be released through garbage collection. The closing of an application cannot be prevented in an event handler for the applicationExit event. To prevent the closing of an application, you can handle the closing event of the Form class for the main form of your application.

See Also   addOnApplicationExit