IComponentChangeService.ComponentAdding Event


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

 event System::ComponentModel::Design::ComponentEventHandler ^ ComponentAdding;
event System.ComponentModel.Design.ComponentEventHandler ComponentAdding;
member this.ComponentAdding : System.ComponentModel.Design.ComponentEventHandler 
Event ComponentAdding As ComponentEventHandler 


This event occurs during load and when the user creates a new component. You can cancel the process of adding a component by throwing an exception here.

Applies to

See also