A runtime form designer control

FormDesigner.ComponentRemoving Event

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

[Visual Basic]
Public Event ComponentRemoving As ComponentEventHandler 
[C#]
public event ComponentEventHandler ComponentRemoving;
[C++]
public: __event ComponentEventHandler* ComponentRemoving;

[JScript] In JScript, you can use the events defined by a type, but you cannot define your own.

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.

See Also

FormDesigner Class | Viklele.Win.Designer Namespace | ComponentAdding | ComponentAdded | ComponentRemoved