private void BrowseBT_Click(object sender, EventArgs e) { if (BrowseDialog.ShowDialog() == DialogResult.OK) { DirTB.Text = BrowseDialog.SelectedPath; } }
public Form1() { InitializeComponent(); var ting = new BrowseDialog(); if (ting.ShowDialog() == DialogResult.OK) { var test = ting.SelectedFileNameUriEncoded; } }
private void BrowseExec(object sender, ExecutedRoutedEventArgs e) { BrowseDialog.FileName = PathPattern; if (BrowseDialog.ShowDialog().GetValueOrDefault(false)) { PathPattern = BrowseDialog.FileName; } if (PathEditor != null) { PathEditor.Focus(); } }