Is it possible to convert a string to code? 
For example, instead of: 
string foo = "bar";
...
switch(foo){
case "bar":
    pictureBox.Image = Project.Properties.Resources.bar;
    break;
...
}
Is there a way to simply:
string foo = "bar"
pictureBox.Image = Project.Properties.Resources.<foo string goes in here>;
I hope this example makes sense.
 
     
    