Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Extending the Image class

Status
Not open for further replies.

Rewbs

Programmer
May 1, 2002
18
GB
Hi all,

I'm trying to extend the Image class, but my constructor keep causing the following error:

error CS0122: 'System.Drawing.Image.Image()' is inaccessible due to its protection level

I'm assuming it's something to do with Image being abstract or not having a public constructor.

Here's what I'm doing:

using System.Drawing;

public class test : Image
{

public test()
{
}
}

Any help would be great!

Best Regards,
Robin.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top