Occurs when a component is in the process of being removed.
[Visual Basic] Event ComponentRemoving As ComponentEventHandler [C#] event ComponentEventHandler ComponentRemoving; [C++] __event ComponentEventHandler* ComponentRemoving;
[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 ComponentEventArgs containing data related to this event. The following ComponentEventArgs property provides information specific to this event.
|Component||Gets the component associated with the event.|
This event occurs during unload and when the user deletes a component. You can cancel the process of removing a component by throwing an exception here.
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family