For .Net Framework, use FolderBrowserDialog:
System.Windows.Forms.FolderBrowserDialog fbd = new FolderBrowserDialog();
fbd.ShowNewFolderButton = false;
fbd.Description = "Please select a folder.";
fbd.RootFolder = System.Environment.SpecialFolder.DesktopDirectory ;
fbd.SelectedPath = "apps"; //default
if(fbd.ShowDialog()==System.Windows.Forms.DialogResult.OK)
MessageBox.Show(fbd.SelectedPath);
But , this is not available for .net Compact Framework
Showing posts with label FolderBrowserDialog - Framework. Show all posts
Showing posts with label FolderBrowserDialog - Framework. Show all posts
Wednesday, May 23, 2007
Subscribe to:
Posts (Atom)