title: Save pictureBox image to openFileDialog filename
body: <p>I'm trying to save an image to a path that already is known: An <code>openFileDialog</code>'s fileName</p>
  
  <p>However, I keep getting the same errors: </p>
  
  <p>"A generic error occurred in GDI+." 
  or 
  "Value cannot be null. Parameter name: filename</p>
  
  <p>I've tried stuff like this:</p>
  
  <pre><code>pictureBox1.Image.Save(openFiles.FileName); // gives me "A generic error occurred in GDI+."
  </code></pre>
  
  <p>as well as</p>
  
  <pre><code> pictureBox1.Image.Save(pictureBox1.ImageLocation); // gives me "Value cannot be null. Parameter name: filename"
  </code></pre>
  
  <p>Basically, all I would like to do is save the image to the path that's been established already.  Like opening an image in MSPaint, drawing on it, and saving it - no dialog comes up, it just saves to the path from the openFileDialog.</p>
  
  <p>I cannot, <em>for the life of me,</em> figure out how to do this!</p>
  
  <p>Any and all help is appreciated!</p>
  
  <p>Thanks!</p>