반응형

NuGet 패키지 추가

  • Install-Package WindowsAPICodePack-Shell -Version 1.1.2

폴더 Dialog 실행

CommonOpenFileDialog folderDialog = new CommonOpenFileDialog()
{
    InitialDirectory = "",
        IsFolderPicker = true
 };

 if(folderDialog.ShowDialog() == CommonFileDialogResult.Ok)
 {
    tbxFolder.Text = folderDialog.FileName;
  }

실행 모습

반응형

WRITTEN BY
데르벨준

,