2

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;
}
wusher
  • 12,291
  • 22
  • 72
  • 95

1 Answers1

4

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

Dested
  • 6,294
  • 12
  • 51
  • 73