PaintEventArgs.Dispose Method ()
Releases all resources used by the PaintEventArgs.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Call PaintEventArgs. The method leaves the PaintEventArgs in an unusable state. After calling , you must release all references to the PaintEventArgs so the garbage collector can reclaim the memory that the PaintEventArgs was occupying. For more information, see Cleaning Up Unmanaged Resources and Implementing a Dispose Method.when you are finished using the
Available since 1.1