How can I get the result (meaning the file name and its location) from an Open File Dialog?
My code:
private void selectFileButton_Click( object sender, EventArgs e ) {
var selectedFile = selectFileDialog.ShowDialog();
//label name = fileName
fileName.Text = //the result from selectedFileDialog
}
1 Answer