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
Wednesday, May 23, 2007
Subscribe to:
Post Comments (Atom)
Blog Archive
-
▼
2007
(13)
-
▼
May
(12)
- MessageBox with more options in C#
- Error Report Example in C#
- Error Report Example in C++
- Ascii to Hex in C#
- Hex to Ascii Conversion in C#
- C# File Open, Save in .Net Framework and Compact F...
- C++ File Open, save in .Net Compact Framework
- How to do a folder browing in .Net Compact Framework?
- Folder Browsing --- Easy way 2
- Folder Browsing --- Easy way 1
- Microsoft way to do folder browsing
- How to do a folder browsing in C#?
-
▼
May
(12)
No comments:
Post a Comment