Declare your internal property as Object
2009/2/27 GotDotNetNow <[email protected]>
>
> I'm building a custom user control. One of the properties must allow
> the end user to select the numeric data type such as int, short, long,
> double.... I'm having a problem figuring out what to use as a
> internal property type, so that when the user selects the DataType
> option in the property box it will give them a drop down list of all
> the numeric types.
>
> I've tried a few variances... This one below, when compiled display
> the DataType property as grayed out. It won't allow me to select or
> enter a value.
>
> private System.ValueType _DataType;
>
> public System.ValueType DataType
> {
>
> get { return _DataType; }
> set
> {
>
> _DataType = value;
> }
> }
>
> Any help is appreciated.
> Thanks!
>
--
Regards
*******************
*C.Arun Kumar *
*******************
My Site
http://sites.google.com/site/carunkumar85/