G
Gerald
Hi,
suppose i have a simple class consist of two properties
ValueType which is an enum consisting of
(integer,boolean,string,datetime,color)
And a property called Value which is of type object
I want Visual studio 2005 to display a coloreditor for property Value
when Valuetype == color, a datepicker when ValueType==datetime etc..
so in essence the type of Value changes according to the value of the
property ValueType,
What is the best way to go about this. I looked at
TypeConverter,UITypeEditor and TypeDescriptionProvider the latter seems
most promissing, but can't find any good material about it.
--
suppose i have a simple class consist of two properties
ValueType which is an enum consisting of
(integer,boolean,string,datetime,color)
And a property called Value which is of type object
I want Visual studio 2005 to display a coloreditor for property Value
when Valuetype == color, a datepicker when ValueType==datetime etc..
so in essence the type of Value changes according to the value of the
property ValueType,
What is the best way to go about this. I looked at
TypeConverter,UITypeEditor and TypeDescriptionProvider the latter seems
most promissing, but can't find any good material about it.
--