FolderNameEditor.FolderBrowserFolder的成员:
怎么在这里指定一个已经选择过的目录呢????????让用户不用每次进来都重复选择工作?????????????
属于System.Windows.Forms.Design 命名空间
Desktop
Favorites
MyComputer
MyDocuments
MyPictures
NetAndDialUpConnections
NetworkNeighborhood
Printers
Recent
SendTo
StartMenu
Templates
在网页上找到了这些,有没用???
FolderBrowserDialog fbd = new FolderBrowserDialog();
fbd.Description = "fgfgdfgsgfd";
fbd.RootFolder = Environment.SpecialFolder.Desktop;
fbd.SelectedPath = @"C:\Windows";
fbd.ShowNewFolderButton = true;
if (fbd.ShowDialog(this) == DialogResult.OK)
{
Console.WriteLine(fbd.SelectedPath);
}
本文地址:http://com.8s8s.com/it/it43559.htm