how to use open file dialog to select a folder C#

Аватар автора
Python: Изменение кодовой парадигмы
the nuget package you need to install for your project: Microsoft.WindowsAPICodePack-Shell the code: using Microsoft.WindowsAPICodePack.Dialogs; CommonOpenFileDialog dialog = new CommonOpenFileDialog(); dialog.IsFolderPicker = true; if (dialog.ShowDialog() == CommonFileDialogResult.Ok) { textBox1.Text = dialog.FileName; }

0/0


0/0

0/0

0/0