At this point I am note sure what I am doing wrong. I wrote these lines of code
private void btnBrowse_Click(object sender, RoutedEventArgs e)
{
try
{
OpenFileDialog op = new OpenFileDialog();
op.ShowDialog();
if (op.ShowDialog() == DialogResult.OK)
{
txtpath.Text = op.FileName;
}
}
catch { }
}
But this isn't working due to an error which states
'bool' does not contain a definition for 'OK'
It should be read out in a listbox.