method ExShellView.ModifyFolderFlags (Add as FolderFlagsEnum, Remove as FolderFlagsEnum)
Adds or removes flags that indicates the options for browsed folder.

TypeDescription
Add as FolderFlagsEnum A combination of FolderFlagsEnum value that indicates the flags being added to current view.
Remove as FolderFlagsEnum A combination of FolderFlagsEnum value that indicates the flags being removed from the current view.
This method determines custom flags that can apply to ExShellView determining its appearance. For example, reset the 'SingleSel' flag, and so the current view supports selecting multiple items. By default, the control supports selecting a single item. Use the ObjectSelected event to notify your application when the user selects an item. The ViewFloderFlags property is used to determine custom flags that are applied to the control determining its appearance. Use the SelectAll method to select all files in the control's view.

The following VB/NET sample shows how to enable multiple selection within the view:

Exshellview1.ViewFolderFlags = Exshellview1.ViewFolderFlags And Not exontrol.EXSHELLVIEWLib.FolderFlagsEnum.SingleSel

The following C# sample shows how to enable multiple selection within the view:

exshellview1.ViewFolderFlags = exshellview1.ViewFolderFlags & ~((int)exontrol.EXSHELLVIEWLib.FolderFlagsEnum.SingleSel);

The following VB.NET sample shows how to get the selected files/folder for /NET assembly version:

Dim i As Long = 0, s As String = ""
With Exshellview1
    .Objects.Get(exontrol.EXSHELLVIEWLib.ObjectTypeEnum.SelectedItems)
    With .Objects
        For i = 0 To .Count - 1
            Dim sel As exontrol.EXSHELLVIEWLib.exshellobject = .Item(i)
            ' * The sel indicates the shell object being selected *
            s = s + sel.Name + vbCrLf
        Next
    End With
End With
If s.Length > 0 Then
    MessageBox.Show(s, "Selection")
Else
    MessageBox.Show("Empty", "Selection")
End If

The following C# sample shows how to get the selected files/folder for /NET assembly version:

string s = "";
exshellview1.Objects.Get(exontrol.EXSHELLVIEWLib.ObjectTypeEnum.SelectedItems);
for ( int i = 0; i < exshellview1.Objects.Count; i++ )
{
    exontrol.EXSHELLVIEWLib.exshellobject sel = exshellview1.Objects[i];
    // * The sel indicates the shell object being selected *
    s = s + sel.Name + "\r\n";
}
if (s.Length > 0)
    MessageBox.Show(s, "Selection");
else
    MessageBox.Show("Empty", "Selection");