Horje
open folder dialog c# Code Example
c# winforms select folder dialogue
using(var fbd = new FolderBrowserDialog())
{
    DialogResult result = fbd.ShowDialog();

    if (result == DialogResult.OK && !string.IsNullOrWhiteSpace(fbd.SelectedPath))
    {
        string[] files = Directory.GetFiles(fbd.SelectedPath);

        System.Windows.Forms.MessageBox.Show("Files found: " + files.Length.ToString(), "Message");
    }
}
c# open file dialog
OpenFileDialog dialog = new OpenFileDialog();
if (DialogResult.OK == dialog.ShowDialog()) 
{
    string path = dialog.FileName;
}
open folder dialog c#
// https://github.com/ookii-dialogs/ookii-dialogs-wpf
string path;
var fbd = new VistaFolderBrowserDialog();
fbd.ShowNewFolderButton = true;
fbd.Description = "Select Source Folder";
fbd.ShowDialog();
path = fbd.SelectedPath;
//Fix Length Browse Folder Disk
return path.Length > 3 ? $@"{path}\" : $@"{path}";
c# file directory selection
CommonOpenFileDialog dialog = new CommonOpenFileDialog();
dialog.InitialDirectory = "C:\\Users";
dialog.IsFolderPicker = true;
if (dialog.ShowDialog() == CommonFileDialogResult.Ok)
{
    MessageBox.Show("You selected: " + dialog.FileName);
}




Csharp

Related
No context type was found in the assembly Code Example No context type was found in the assembly Code Example
function in c# to do addition Code Example function in c# to do addition Code Example
.net c# print object Code Example .net c# print object Code Example
c# get all the column names from datagridview Code Example c# get all the column names from datagridview Code Example
C# .net core convert string to enum Code Example C# .net core convert string to enum Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11