Home > Net >  Winform choice under the folder
Winform choice under the folder

Time:11-15

Winform provide choice on the folder FolderBrowserDialog interface is like this:



This selection box is small and not a multi-select folder , is there anyone support large selection box and choose more folder control function, effect below:



Pictured above is winform project properties of modified output path feature selection box,

Why he is such a big, provide only FolderBrowserDialog this ugly

CodePudding user response:

Nuget add Microsoft. WindowsAPICodePack - Shell
 
CommonOpenFileDialog dialog=new CommonOpenFileDialog ();
Dialog. InitialDirectory="C: \ ";
Dialog. IsFolderPicker=true;
Dialog. ShowDialog ();

  •  Tags:  
  • C#
  • Related