Share via


Overview | Methods | Fields | This Package | All Packages

OverviewMethodsFieldsThis PackageAll Packages

Control.dispose

Frees all resources allocated for this control.

Syntax

public void dispose()

Remarks

Any resources used by the control should be set up to be released in this method. This method is called when the control is garbage collected or when its container is disposed. You can call this method to force its resources to be released. Because this method can be called multiple times, make sure it is re-entrant. When overriding this method, call super.dispose.