Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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. :)

like image 780
Nicky Name Avatar asked Dec 09 '22 10:12

Nicky Name


1 Answers

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

enter image description here

enter image description here

like image 188
tofutim Avatar answered Dec 10 '22 23:12

tofutim