0

I am copying the code in this discussion: Change desktop wallpaper using code in .NET

But now I have a problem with the System.Drawing reference. At the line:

System.Drawing.Image img = System.Drawing.Image.FromStream(s);

I have the following error: the type name 'Image' could not be found in the namespace "System.Drawing".

I right-clicked on project "CambioSfondo" -> Add -> Project Reference -> COM -> searched for System.Drawing.dll and add it, but the error is still there.

Could someone please help me? Look my error

Albanese98
  • 13
  • 1
  • 6

0 Answers0