title: Changing the picture in a pictureBox with a variable
body: <p>This is my code to load a picture box with an image and it works fine.  </p>
  
  <pre><code>picBox1.Image = Properties.Resources.imageName;
  </code></pre>
  
  <p>I would like to replace "imageName" with a variable like String x = "imageName" and change the code to something like this.</p>
  
  <pre><code>picBox1.Image = Properties.Resources.x;
  </code></pre>
  
  <p>It does not seem to work.  Is there some other way to do it, and why does this not work?  Thank you.  Also, noob alert.  I did google the question and look around for a solution before asking on these forums.</p>