This documentation is archived and is not being maintained.

DocumentList.SelectedDirectoryChanged Event

Occurs when a folder is selected in a DocumentList control.

Namespace:  Microsoft.WindowsCE.Forms
Assembly:  Microsoft.WindowsCE.Forms (in Microsoft.WindowsCE.Forms.dll)

public event EventHandler SelectedDirectoryChanged

You can handle this event and use the currently selected folder to open and close files. The SelectedDirectory property contains currently selected folder.

For more information about handling events, see Consuming Events.

The following code example shows a method that handles the SelectedDirectoryChanged event. This code example is part of a larger example provided for the DocumentList class.

private void OnFolderSel(object obj, EventArgs eventg)
    statusBar1.Text = "Folder: " + DocList.SelectedDirectory;

    // Add code to access the selected folder to open and close files.

Windows Mobile for Pocket PC

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Compact Framework

Supported in: 3.5, 2.0