IComponentChangeService.ComponentChanged Event

Occurs when a component has been changed.

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

event ComponentChangedEventHandler ComponentChanged

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.

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft