Click here to Skip to main content
12,405,895 members (57,471 online)
Click here to Skip to main content

Stats

424.3K views
13.2K downloads
261 bookmarked
Posted

Enhanced BrowseForFolder styled TreeView

, 27 May 2013 Apache
Supports Explorer, SingleChecked and RecursiveChecked mode (checkboxes). Lets you specify the displayed drive types etc...
Raccoom.TreeViewFolderBrowser.dll
Raccoom.Windows.Forms.Demo.exe
Interop.Shell32.dll
Raccoom.TreeViewFolderBrowser.DataProviders.dll
Raccoom.TreeViewFolderBrowser.DataProviders
CVS
Entries
Entries.Extra
Repository
Root
Win32
CVS
Entries
Entries.Extra
Repository
Root
Raccoom.TreeViewFolderBrowser.Demo
App.ico
CVS
Entries
Entries.Extra
Repository
Root
Raccoom.TreeViewFolderBrowser
CVS
Entries
Entries.Extra
Repository
Root
Win32
CVS
Entries
Entries.Extra
Repository
Root
Raccoom.TreeViewFolderBrowser.chm
Entries
Entries.Extra
Repository
Root
Entries
Entries.Extra
Repository
Root
Entries
Entries.Extra
Repository
Root
Entries
Entries.Extra
Repository
Root
using System;
using System.Windows.Forms;
using System.Windows.Forms.Design;

namespace TreeViewExplorer.Source
{	
	/// <summary>
	/// Standard BrowseForFolder Dialog
	/// </summary>
	public class BrowseForFolder : FolderNameEditor 
	{ 
		FolderNameEditor.FolderBrowser bDialog;
    	
		public BrowseForFolder()
		{ 
			bDialog = new FolderNameEditor.FolderBrowser(); 
		}
    	
		public string browseDialog(string sTitle)
		{
			bDialog.Description = sTitle;
			bDialog.StartLocation = FolderNameEditor.FolderBrowserFolder.MyComputer;
			bDialog.Style = FolderNameEditor.FolderBrowserStyles.RestrictToDomain;
			bDialog.ShowDialog();			
			return bDialog.DirectoryPath;
		}
		~BrowseForFolder()
		{
			bDialog.Dispose(); 
		}
	}

}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Apache License, Version 2.0

Share

About the Author

Chris Richner
Software Developer (Senior) Zeit AG
Switzerland Switzerland
My interest is in the future because I am going to spend the rest of my life there. (Charles Kettering)

Biography
  • 1996 - 1998 PC Board PPL, HTML, DHTML, Javascript and ASP
  • 1999 - 2001 coding Centura against Sql Database (SqlBase,MSSQL,Oracle)
  • 2002 - 2004 C# Windows Forms
  • 2005 - 2006 C# ASP.NET, Windows Forms
  • 2006 - 2009 C#, WCF, WF, WPF
  • 2010 - 2012 C#, Dynamics CRM, Sharepoint, Silverlight
  • 2013 - 2013 C#, WCF DS (OData), WF, WPF
  • 2014 - now C#, Azure PaaS, Identity, OWIN, OData, Web Api
Interests
  • family & friends
  • chilaxing ,)
  • coding

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160721.1 | Last Updated 27 May 2013
Article Copyright 2003 by Chris Richner
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid