How do you Create a Custom Control Property which Embeds Resource into Forms .resx File?

  • Thread starter Thread starter ShakeDoctor
  • Start date Start date
S

ShakeDoctor

Hi,

I have a custom control which I'm trying to get working with the designer.
I have 2 public properties - an Image property, and a Map property.

The Image property sets and gets a System.Drawing.Image object. In the
designer this automatically shows up in the property window allowing you to
select an image file, and then it embeds the image binary data in the forms
..resx file. I haven't done any code to allow this, Visual Studio has just
done this itself.

I want the Map property to be an XML file which again you can select and
choose in the property window (just like the Image property) and it will
automatically embed the XML file in the forms .resx file.

Is this even possible? and if so how?

TIA.
 

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

Back
Top