Reputation: 12451
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;
}
Upvotes: 2
Views: 301
Reputation: 6433
something.Image = Namespace.ProjectName.Properties.Resources.ImageName;
Upvotes: 4