How to create an Explorer-like folder browser control?

后端 未结 3 1861
闹比i
闹比i 2020-11-27 15:05

Using C# and WinForms in VS2008, I want to create a file browser control that looks and acts like the left pane in Windows Explorer. To my astonishment, such a control does

相关标签:
3条回答
  • 2020-11-27 15:50

    It's not as easy as it seems to implement a control like that. Explorer works with shell items, not filesystem items (ex: the control panel, the printers folder, and so on). If you need to implement it i suggest to have a look at the Windows shell functions at http://msdn.microsoft.com/en-us/library/bb776426(VS.85).aspx.

    0 讨论(0)
  • 2020-11-27 15:53

    Microsoft provides a walkthrough for creating a Windows Explorer style interface in C#.

    There are also several examples on Code Project and other sites. Immediate examples are Explorer Tree, My Explorer, File Browser and Advanced File Explorer but there are others. Explorer Tree seems to look the best from the brief glance I took.

    I used the search term windows explorer tree view C# in Google to find these links.

    0 讨论(0)
  • 2020-11-27 15:59

    Take a look at Shell MegaPack control set. It provides Windows Explorer like folder/file browsing with most of the features and functionality like context menus, renaming, drag-drop, icons, overlay icons, thumbnails, etc

    0 讨论(0)
提交回复
热议问题