title: how to change the image in the resource folder
body: <p>I am a student studying c# and working on <code>winform</code>. </p>
  
  <p>I have a winform which have a <code>splashForm</code> which loads its background image from the resources folder. and after the <em>splash screen</em> in the <code>mainForm</code> there is a option to change the splash screen background using <code>openFileDialog</code>.</p>
  
  <p>I want to replace the image(<em><code>splashimage.jpg</code></em>) from <em>resource</em> folder <em>image</em> base on the selected. And I want to copy the image from user selected to the resource folder and remove the previous image and rename the image of the newly copied image to the (<em><code>splashimage.jpg</code></em>).</p>
  
  <p>I have this code but it does not work for the replacing the image from the <em>resource</em> folder base on the selected image using <code>openFileDialog</code>. </p>
  
  <pre><code>    var FD = new System.Windows.Forms.OpenFileDialog();
                  FD.Filter = "jpeg files|*.jpg";
                  if (FD.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                  {
                     System.IO.File.Copy(FD.FileName,Application.StartupPath
  + "\\" + splashimage.jpg", true);           
                  }
  </code></pre>