title: Getting file into specific Folder on C#
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/938421/getting-the-applications-directory-from-a-wpf-application">Getting the application&#39;s directory from a WPF application</a>  </p>
  </blockquote>
  
  
  
  <p>I want to acess files from project directory like in java without using "C:\Path"  because it create file exception into my picture box  this is code into my timer </p>
  
  <pre><code>if (imagecount == 30)
  {
      this.pictureBox1.Image = System.Drawing.Image.FromFile(@"C:\Users\Baloi\Documents\visual studio 2010\Projects\WinEX\WinEX\" + image() + ".jpg");
      imagecount = 0;
  }
  
  else if (imagecount &lt; 30)
      imagecount++;
  </code></pre>