Click here to Skip to main content
12,634,788 members (32,167 online)
Click here to Skip to main content
Add your own
alternative version


61 bookmarked

Implementing a common File system browser with a ListView

, 24 Sep 2003
Rate this:
Please Sign up or sign in to vote.
A ListView Control like the one used in Windows Explorer
<!-- Article image -->

Sample Image - FileSystemListView.jpg

<!-- Add the rest of your HTML here -->


Very often, we need to have a control for browsing the user file-system in order to select files or folders in our applications. But Microsoft did not include a control like that with Visual Studio .NET, so I gave it a try and developed a ListView component very similar to the one used in Windows Explorer.


  • Please note that Shell operations are not implemented and are not planned.
  • The "My Documents" icon is not the good one.

Key Features

  • Use the System ImageList for retrieving the icons (pretty fast)
  • Allows to get back to the parent folder (..), so you don't need a companion control or other button for doing that. (AllowParentFolderSelection property)


Just drag the component onto your form and call the control's Initialize() method in the form Load event.


So this is it. Maybe it will give you a good start for a more complete version.


  • Thanks to Furty for his works with his TreeView control. It gave me ideas for mine and I used the Shell32 stuff he discovered in coding his control.
  • SystemListView code developed and borrowed from Steve McMahon. Click here for his article.


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Jonathan Gauthier
Architect CGI
Canada Canada
No Biography provided

You may also be interested in...


Comments and Discussions

QuestionHidden Folders? Pin
Daniel Schaffer23-Jan-06 5:29
memberDaniel Schaffer23-Jan-06 5:29 
AnswerRe: Hidden Folders? Pin
Jos Branders31-Oct-09 7:52
memberJos Branders31-Oct-09 7:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.161208.2 | Last Updated 25 Sep 2003
Article Copyright 2003 by Jonathan Gauthier
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid