System.ComponentModel.Design.IComponentChangeService.ComponentRemoving Event

Occurs when a component is in the process of being removed.

Syntax

public event ComponentEventHandler ComponentRemoving

Remarks

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.

Requirements

Namespace: System.ComponentModel.Design
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0