Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这不起作用:
fbFolderBrowser.RootFolder = @"C:\A Folder I Created\Test1\";
当用户单击按钮时,我希望选择上述文件夹。
我该怎么做呢?
而不是RootFolder你需要设置SelectedPath-
RootFolder
SelectedPath
fbFolderBrowser.SelectedPath = @"C:\A Folder I Created\Test1\";
如果我没记错的话:
fbFolderBrowser.InitialDirectory = @"C:\A Folder I Created\Test1\";