[To be supplied.]
The following declaration shows the syntax for a method that handles the ComponentChanging event.
[Visual Basic] Private Sub IComponentChangeServiceName_ComponentChanging( _ ByVal sender As Object, _ ByVal e As ComponentChangingEventArgs _ ) [C#] private void IComponentChangeServiceName_ComponentChanging( object sender, ComponentChangingEventArgs e ); [C++] private: void IComponentChangeServiceName_ComponentChanging( Object* sender, ComponentChangingEventArgs* e ); [JScript] private IComponentChangeServiceName_ComponentChanging( sender : Object, e : ComponentChangingEventArgs );
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.
IComponentChangeService Interface | IComponentChangeService MembersTopic | System.ComponentModel.Design Namespace