class in C# doesn't recognize Image class from System.Drawing

c#, image, user-interface

Solution

Try right-clicking your project References and adding System.Drawing.

Problem

I was writing my `Patient` class, for clinic software, and wanted to add a `Photo` property, but the `Image` class doesn't seem to be working in my code, don't know why, considering that I have included `System.Drawing`. ``` using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Drawing; namespace ClinicFiles { public partial class Patient : Person { public Image Photo { get; set; } //etc. etc. } } ``` P.S. What site do you find the best guideline to a beautiful Windows Application design? :) Nice and professional user interface, all details taken care of, as fonts, etc etc. :)

Original source