Export (0) Print
Expand All

IComponentChangeService.ComponentAdding Event

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

[Visual Basic]
Event ComponentAdding As ComponentEventHandler
[C#]
event ComponentEventHandler ComponentAdding;
[C++]
__event ComponentEventHandler* ComponentAdding;

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

Event Data

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.

Property Description
Component Gets the component associated with the event.

Remarks

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.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

IComponentChangeService Interface | IComponentChangeService Members | System.ComponentModel.Design Namespace | ComponentAdded | ComponentEventHandler

Show:
© 2014 Microsoft