Displaying property values in IDE
Posted on 2004-09-19
I am creating an inherited control containing a property named InputDataType which denotes what type of data the user will by allowed to type in. However, I want this property to have the predefined "String","Integer","Decimal" values in the IDE, thing which doesn't happen with the string type (happens with types such as boolean that have predefined values). I suppose I have to create a class, array, collection or something but I have been unable to find how to do it. Here is my code:
Private strInputDataType As String = "String"
Public Property InputDataType() As String
Set(ByVal Value As String)
Select Case Value
Case "String", "Integer", "Decimal"
strInputDataType = Value
strInputDataType = "String"
What must I do in order for the "String", "Integer" and "Decimal" values to be displayed in the IDE in the property's value field?