Skip to content

EndRenameItem Event

Description

Occurs when an item has finished being renamed.

Syntax

Public Event EndRenameItem( _
    ByVal Item As TaskPanelItem, _
    ByRef NewString As String, _
    ByRef Cancel As Boolean _
)

Parameters

  • Item: TaskPanelGroup or TaskPanelItem whose caption will be changed.
  • NewString: New caption for the item.
  • Cancel: Set to True to cancel renaming of the item.

Remarks

When the RenameItem method is called, an edit box appears on the group/item caption allowing you to type in a new name. After the edit box loses focus or the enter key is pressed, the EndRenameItem event is fired. EndRenameItem is fired before the caption of the item is actually changed, giving you the opportunity to filter the new string, etc., or completely cancel the edit operation.

See Also


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.