FolderBrowserDialog folder = new FolderBrowserDialog();
if (folder.ShowDialog() == DialogResult.OK)
{
txtBoxInputpath.Text = folder.SelectedPath;
}
if (folder.ShowDialog() == DialogResult.OK)
{
txtBoxInputpath.Text = folder.SelectedPath;
}