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.
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.
|Component||Gets the component associated with the event.|
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.
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family