Knowledge Base

ShellBrowser .NET Components

Question / Problem

Why is the use of the property ListViewItem.Caption discouraged?

Answer / Solution

Depending on the Windows Settings this property might not contain the complete file name but one with the extension cut off.
Instead, use the ShellListItem.FullPath property, it contains the full path to the file represented by the item.
The function Path.GetFileName(string path) gets you the full and pure file name and omits the path.