Knowledgebase

status_loader

Use of ListViewItem.Caption

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.

Need further help getting started?

You did not find what you were looking for? Please contact us so we can provide an answer to your question.

Contact Form