Adds an event handler to listen to the Disposed event on the component.
[Visual Basic] Public Overridable Event Disposed As EventHandler [C#] public virtual event EventHandler Disposed; [C++] public: virtual __event EventHandler* Disposed;
[JScript] In JScript, you can handle the events defined by a class, but you cannot define your own.
The event handler receives an argument of type EventArgs.
When you create a Disposed delegate, you identify the method that handles the event. To associate the event with your event handler, add an instance of the delegate to the event. The event handler is called whenever the event occurs, unless you remove the delegate. For more information about the event handler delegates, see Events and Delegates.
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family