error in constractor... RRS feed

  • Question

  • Hi,

    I have small doubt..,

    class TestConstractor : System.Drawing.Image




    // do something.......



    if i build, then i got compile error like : The type 'System.Drawing.Image' has no constructors defined


    thank you


    • Moved by Hengzhe Li Friday, April 22, 2011 7:43 AM (From:SyncFx - Microsoft Sync Framework Database Providers [ReadOnly])
    Thursday, June 26, 2008 2:24 PM

All replies

  • I had the same problem. I was never able to create a class that extended Image, so I just created a class called ImageX which had members Image image and string Name, which gave me the flexibility I need without 

    I also looked at how the class BitMap (derived from Image) was implemented, but it was using

    public ref class Bitmap sealed : public Image
    Using ref caused more errors and the sealed leads me to believe that it has to do with library code. But like I said, I just created a class with an image in it to satisfy a work-around.
    Monday, December 8, 2008 4:59 PM