tags:

views:

80

answers:

1

How do I access an image during run time that I have added to the projects resources?

I would like to be able to do something like this:

if (value) {
    picBox1.image = Resources.imageA;
}
else 
{
    picBox2.image = Resources.imageB;
}
+3  A: 

something.Image = Namespace.ProjectName.Properties.Resources.ImageName;

Dested