Disposes of the resources (other than memory) used by the ComponentDesigner.
[Visual Basic] Overridable Public Sub Dispose() [C#] public virtual void Dispose(); [C++] public: virtual void Dispose(); [JScript] public function Dispose();
Call Dispose when you are finished using the ComponentDesigner. The Dispose method leaves the ComponentDesigner in an unusuable state. After calling Dispose, you must release all references to the ComponentDesigner so the memory it was occupying can be reclaimed by garbage collection.
Note Always call Dispose before you release your last reference to the ComponentDesigner. Otherwise, the resources the ComponentDesigner is using will not be freed until garbage collection calls the ComponentDesigner object's destructor.
ComponentDesigner Class | ComponentDesigner Members | System.ComponentModel.Design Namespace | IDesigner