Export (0) Print
Expand All

IComponentChangeService.ComponentChanged Event

Occurs when a component has been changed.

Namespace: System.ComponentModel.Design
Assembly: System (in system.dll)

event ComponentChangedEventHandler ComponentChanged
/** @event */
void add_ComponentChanged (ComponentChangedEventHandler value)

/** @event */
void remove_ComponentChanged (ComponentChangedEventHandler value)

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

This event occurs when any component on the form changes. This event will not occur during form load and unload, because changes are expected at this time.

NoteNote:

A DesignerTransaction can raise multiple ComponentChanged events. Some ComponentChanged event handlers can interfere with expected sequences of events, such as if your code alters the values of properties while a transaction is occurring. A ComponentChanged event handler can also impair performance if it draws after each change while a DesignerTransaction is in progress. In order to allow a DesignerTransaction in process to complete without interruption or interference by your ComponentChanged event handler, you can test the state of the InTransaction property, and defer handling the change events until the completion of the transaction by adding a DesignerTransactionCloseEventHandler which will raise your ComponentChanged event handler and remove itself upon completion of the transaction.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show:
© 2015 Microsoft