NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

IComponentChangeService.AddOnComponentChanging

Adds an event handler for the OnComponentChanging event.

[Visual Basic]
Sub AddOnComponentChanging( _
   ByVal handler As ComponentChangingEventHandler _
)
[C#]
void AddOnComponentChanging(
   ComponentChangingEventHandler handler
);
[C++]
void AddOnComponentChanging(
   ComponentChangingEventHandler* handler
) = 0;
[JScript]
function AddOnComponentChanging(
   handler : ComponentChangingEventHandler
);

Parameters

handler
A ComponentChangingEventHandler delegate that represents the method that will handle the ComponentChangingEvent.

Remarks

This event occurs before the component is actually changed. It gives a designer the chance to abort the change. Generally, only the top-level designer cares about such change requests. This event does not occur during form load and unload, because changes are expected at this time.

See Also

IComponentChangeService Interface | IComponentChangeService Members | System.ComponentModel.Design Namespace | RemoveOnComponentChanging | ComponentChangingEventHandler