This documentation is archived and is not being maintained.

IComponentChangeService.ComponentChanging Event

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

[Visual Basic]
Event ComponentChanging As ComponentChangingEventHandler
event ComponentChangingEventHandler ComponentChanging;
__event ComponentChangingEventHandler* ComponentChanging;

[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 ComponentChangingEventArgs containing data related to this event. The following ComponentChangingEventArgs properties provide information specific to this event.

Property Description
Component Gets the component that is about to be changed or the component that is the parent container of the member that is about to be changed.
Member Gets the member that is about to be changed.


This event occurs before the component is actually changed, and gives the designer a chance to abort the change or perform any pre-change processing. This event does not occur during form load and unload, because changes are expected at this time.


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 | ComponentChanged | ComponentChangingEventHandler