title: Can't delete file after downloading
body: <p>Why can't I delete files after downloading them?                </p>
  
  <p>I get this error:</p>
  
  <blockquote>
    <p>file 'exfile.jpgg' because it is being used by another process.</p>
  </blockquote>
  
  <p>Here is my code,</p>
  
  <pre><code>string file_name = "pic.jpg"
  WebClient client = new WebClient();
  client.DownloadFile("http://picture.com/pic.jpg", file_name);
  client.Dispose();
  client = null;
  
  pictureBox1.Image = Image.FromFile(File_Name);
  pictureBox1.Image = null;
  
  FileInfo MyFile = new FileInfo(File_Name);
  MyFile.Delete();
  </code></pre>