Image Property in the designer

A

Adam Dockter

I am trying to create image property that will work in the designer. I want
the image to be written to the resource file for the class.

Here is what I have so far, but I am running into a wall here. The property
comes up okay in the designer with the drill button and the file selector.
But after I choose an Image file, nothing happens. The property remains
(none).

If you have any info on how to achieve this it would be greatly appreciated.

Code snippit:

[Category("Behavior"),
Browsable(true),
TypeConverter(typeof(ImageConverter)),
EditorAttribute(typeof(ImageEditor),typeof(UITypeEditor))]
public System.Drawing.Image Image{
get { return mImage; }
set { mImage = null; }
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top