Hide

SftDirectory 3.5 - ActiveX File/Folder Control

Display
Print

SftDirectory.Renaming Event

A file/folder is being renamed.

Syntax

VB.NETPrivate Sub object_Renaming(ByVal sender As Object, ByVal e As EventArgumentType) Handles object.Renaming
VBPrivate Sub object_Renaming(Folder As SftDirectoryFolder, Allow As Boolean)
C#.NETvoid object_Renaming(object sender, EventArgumentType e);
VC++void OnRenamingobject(ISftDirectoryFolder** Folder, VARIANT_BOOL* Allow);
CHRESULT OnRenamingobject(ISftDirectoryFolder** Folder, VARIANT_BOOL* Allow);

object

A SftDirectory object.

Folder

Describes the file/folder being renamed.

Allow

On return, determines the action to be taken.

AllowDescription
TrueThe file/folder can be renamed.
FalseThe file/folder cannot be renamed.

Comments

The Renaming event occurs when a file/folder is being renamed.

Depending on the RenameStyle property, a file/folder can be renamed by using the context menu (see ShowContextMenu property) or by clicking on the file/folder name to edit its name in-place. In either case, if the user initiates renaming a file, before the edit control is displayed for editing, the Renaming event occurs. Once the file/folder has been renamed successfully, the Renamed event occurs.

See Also SftDirectory Object | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.