Have you added a reference to the System.Drawing.dll as well? If you want to use classes defined in a classlibrary you need to reference that library.