Skip to main content
Version: 2025

VisFileListBox

Namespace: PPJ.Runtime.Vis

Assembly: PPJ.Web.Vis.50 (5.0.0.0)

Displays server files and directories with type pictures and tab-separated metadata.

public class VisFileListBox : VisListBoxBase

Paths refer to the server filesystem. The control handles SAL creation messages to initialize its contents.

Example:

var list = new VisFileListBox();
SalNumber count = list.Populate(System.IO.Path.GetTempPath());

Constructors

Instance member VisFileListBox()

Creates the control and registers its SAL message handlers.

Methods

Static member FromHandle(hWnd)

Resolves a SAL handle to an existing VisFileListBox.

ParameterTypeDescription
hWndSalWindowHandleThe control handle to resolve.

Returns: VisFileListBox. The associated control, or when no control is resolved.

Throws:

Instance member Populate(sPath)

Replaces the items with a parent-directory entry, subdirectories, and files.

ParameterTypeDescription
sPathSalStringThe server directory path, including its trailing directory separator; the method appends ..

Returns: SalNumber. The directory count plus file count plus one for the parent-directory entry.

Captions include tab-separated date, time, and attribute text; files also include a formatted size. Displays a wait cursor during enumeration.

Implements

NameDescription
ISalControl
ISalListControl
ISalWindow