Occurs when a component is renamed.
[Visual Basic] Event ComponentRename As ComponentRenameEventHandler [C#] event ComponentRenameEventHandler ComponentRename; [C++] __event ComponentRenameEventHandler* ComponentRename;
[JScript] In JScript, you can handle the events defined by a class, but you cannot define your own.
The event handler receives an argument of type ComponentRenameEventArgs containing data related to this event. The following ComponentRenameEventArgs properties provide information specific to this event.
| Property | Description |
|---|---|
| Component | Gets the component that is being renamed. |
| NewName | Gets the name of the component after the rename event. |
| OldName | Gets the name of the component before the rename event. |
This event occurs after the ComponentChanged event when a component has been renamed.
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
IComponentChangeService Interface | IComponentChangeService Members | System.ComponentModel.Design Namespace | ComponentRenameEventHandler