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!

ComponentChangedEventHandler Delegate

Represents the method that will handle a System.ComponentModel.Design.ComponentChangedEvent event.

[Visual Basic]
Public Delegate Sub ComponentChangedEventHandler( _
   ByVal sender As Object, _
   ByVal e As ComponentChangedEventArgs _
)
[C#]
public delegate void ComponentChangedEventHandler(
   object sender,
   ComponentChangedEventArgs e
);
[C++]
public __gc __delegate void ComponentChangedEventHandler(
   Object* sender,
   ComponentChangedEventArgs* e
);

[JScript] In JScript, you can use the delegates in the NGWS frameworks, but you cannot define your own.

Parameters [Visual Basic, C#, C++]

The declaration of your event-handling method must have the same parameters as the ComponentChangedEventHandler delegate declaration.

sender
The source of the event.
e
A System.ComponentModel.Design.ComponentChangedEvent.ComponentChangedEventArgs event that contains the event data.

Remarks

When you create a ComponentChangedEventHandler delegate, you identify the method that will handle the event. For an overview, see TBD.

To associate the event with your event-handling method, call the AddOn XXX method of the System.ComponentModel.Design.ComponentChangeService. The event-handling method is called whenever the event occurs, until you call the RemoveOn XXX method of the control.

Note   Delegates are the underlying mechanism for events, but most of the time you won't use them directly. For details, see TBD.

A System.ComponentModel.Design.ComponentChangedEvent will not occur during form load and unload because changes are expected when this occurs.

Requirements

Namespace: System.ComponentModel.Design

Assembly: System.dll

See Also

System.ComponentModel.Design Namespace | TBD | TBD