Custom UITypeEditor for Color won't work...

I

Iulian Ionescu

Is there anything special with the Color type or any
other value type for that matter? I designed a custom
color picker and apply it to a property like this:

[Editor(typeof(myColorEditor), typeof(UITypeEditor))]
public Color SelectedColor
{
get {return this.selectedColor;}
set {this.selectedColor=value;}
}

and my editor is totally ignored. The default editor is
opened... Why??

Thank you!!
 
I

Iulian Ionescu

Oh, I figured it out... I can't believe I felt in this
trap... I keep my assemblies' versions fixed (like
1.0.0.0) and yesterday I played with a demo version of an
installer trying to create some install projects. I
tested a few and one of them installed one of the
assemblies in the GAC... And it seemed like there was
something very strange... Pieces of code were executing
from the new assembly (in some dir on the development
hdd) while other things were taken from the GAC one.
That's why I was puzzeled as the Editor seemed to be
completely ignored. The reality was that the property was
accessed in the other assembly... Darn... I had to create
a new version for my assembly because now I cannot remove
the other one from the GAC for some reason, but that's
another story...

Thankx anyway!!
iulian
-----Original Message-----
Hi,
Can you post the code for your editor please. It may be a problem in there.

--
Bob Powell [MVP]
C#, System.Drawing

The October edition of Well Formed is now available.
Find out how to use DirectX in a Windows Forms control
http://www.bobpowell.net/currentissue.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm

Blog http://bobpowelldotnet.blogspot.com

"Iulian Ionescu"
Is there anything special with the Color type or any
other value type for that matter? I designed a custom
color picker and apply it to a property like this:

[Editor(typeof(myColorEditor), typeof(UITypeEditor))]
public Color SelectedColor
{
get {return this.selectedColor;}
set {this.selectedColor=value;}
}

and my editor is totally ignored. The default editor is
opened... Why??

Thank you!!


.
 

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