Adding a “Tag” property to a ListBox's items, like a TreeView's Nodes?
问题 I'm making a Windows Form project that will search for files in the specified folders in my spare time. So far, I've got my TreeView that displays folders just like in the Windows Explorer. I also have a ListBox that will store all the search results. When I double click an item in that list, I want to have the option of opening the file. So far, I see three ways of doing this: Having the ListBox display the full path. Using a global List or Array to keep track of the full paths, while the