title: OpenFileDialog in C#
body: <p>How can I get the result (meaning the file name and its location) from an Open File Dialog?</p>
  
  <p>My code:</p>
  
  <pre><code>private void selectFileButton_Click( object sender, EventArgs e ) {
      var selectedFile = selectFileDialog.ShowDialog();
      //label name = fileName
      fileName.Text = //the result from selectedFileDialog
  }
  </code></pre>