C# forms app – ‘Resources’ does not contain a definition for

  Kiến thức lập trình

I’m not a C# programmer. Just trying to put together a small utility app. I’ve run into a problem that doesn’t make sense.

I have added some resources in my solution:

enter image description here

and set their properties to content & copy always.

In the main forms app, I want to use the images:

pictureBox_Product.Image = Properties.Resources.airsmart_co2;

But this gives the above error and red squiggles below the airsmart_co2. I thought this was how this was supposed to work. But, I know next to nothing about this… A little help?!

LEAVE A COMMENT