Hide

SftDirectory 3.5 - ActiveX File/Folder Control

Display
Print

FullTreeView Sample (C#)

This sample illustrates implementing a multi-column, multi-selection treeview control with drag & drop, context menus, renaming files/folders, reordering columns.

The source code is located at C:\Program Files (x86)\Softelvdm\SftDirectory 3.5\Samples\Visual Studio - CSharp\FullTreeView\Form1.cs or C:\Program Files\Softelvdm\SftDirectory 3.5\Samples\Visual Studio - CSharp\FullTreeView\Form1.cs (on 32-bit Windows versions).

private void axSftDirectory1_SelectionFinal(object sender, System.EventArgs e) {
    if (axSftDirectory1.CurrentFolder != null) {
        axSftDirectory1.CurrentFolder.GetImage();
        labelInfoTip.Text = axSftDirectory1.CurrentFolder.InfoTip;
    } else {
        pictureBox1.Image = null;
        labelInfoTip.Text = "";
    }
}

private void axSftDirectory1_FolderImageReady(object sender, AxSftDirectoryLib30._ISftDirectoryEvents_FolderImageReadyEvent e) {
    pictureBox1.Image = OLECvt.ToImage(e.picture);
}

private void closeButton_Click(object sender, System.EventArgs e) {
    Application.Exit();
}

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