Flo
Flo

Reputation: 351

making a TreeView of our own file explorer

I'm trying to get a file explorer on c# and I have found nothing about this. Is c# provide a file explorer already ready to work?

If not, is TreeView a good idea to create mine? Have you got some link to perform this?

Thanks in advance for these informations.

Upvotes: 0

Views: 1516

Answers (1)

Arsen Mkrtchyan
Arsen Mkrtchyan

Reputation: 50712

C# Doesn't provide file explorer tree as it is, but if you want to create a dialog for selecting the folder you can use FolderBrowserDialog(full dialog for folder selection)

However if you want to create one, yes, It is easy to do it with WPF TreeView. As a hint Take TreeView, write HiearchyDataProvider which provides files and folders and templates for each node to display icons and so on

P.S. Simple google search shows a lot of ready-samples

Upvotes: 1

Related Questions