Change Service. Component Removing Event
Occurs when a component is in the process of being removed.
public: event System::ComponentModel::Design::ComponentEventHandler ^ ComponentRemoving;
event System.ComponentModel.Design.ComponentEventHandler ComponentRemoving;
member this.ComponentRemoving : System.ComponentModel.Design.ComponentEventHandler
Event ComponentRemoving As ComponentEventHandler
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.