title: OpenFileDialog - InitialDirectory open a remote directory
body: <p>I have been trying to use the InitialDirectory on remote server without success.
  What I am trying to do is that: (comboBox1 has name of servers)</p>
  
  <pre><code>OpenFileDialog ofLogFile = new OpenFileDialog();
  ofLogFile.Title = "Log for server: " + comboBox1.text;
  OpenFileDialog.InitialDirectory = "\\\\" + comboBox1.text + "\\c$";
  ofLogFile.RestoreDirectory = true;
  </code></pre>
  
  <p>and then there is an if check..</p>
  
  <p>But it doesnt work. All i get is the local machine directoies. 
  The thing is, when i put into InitialDirectory-</p>
  
  <pre><code>    OpenFileDialog.InitialDirectory = @"\\server_name\c$";
  </code></pre>
  
  <p>It works just fine.
  Another thing that i tried to put is:</p>
  
  <pre><code>OpenFileDialog.InitialDirectory = "\\\\" + ((System.Data.DataRowView)
  (this.comboBox1.SelectedItem)).ToString + "\\c$";
  </code></pre>
  
  <p>It also doesnt work.</p>
  
  <p>I am starting the program with the appropriate permissions so it shouldn't be an issue.
  any suggestions?</p>