cdthurman
asked on
Maybe Easy Question about usercontrols
I am creating a usercontrol in which I am using an Enum Type for some of the properties What I am trying to figure out how to do is how do I make the list that comes up at design time use words that cannot be used for variables in an Enum Type
here is what I am trying
Public Enum eAppearance
None
o3D
End Enum
Private meAppearance As eAppearance
Public Property Get Appearance() As eAppearance
Appearance = meAppearance
End Property
Public Property Let Appearance(ByVal thisAppearance As eAppearance)
meAppearance = thisAppearance
Call UserControl.PropertyChange d("Appeara nce")
End Property
When i do this I get this in the list of values i can use
None
o3D
What I want to get is
None
3D
How can I make this work?
Thank You
here is what I am trying
Public Enum eAppearance
None
o3D
End Enum
Private meAppearance As eAppearance
Public Property Get Appearance() As eAppearance
Appearance = meAppearance
End Property
Public Property Let Appearance(ByVal thisAppearance As eAppearance)
meAppearance = thisAppearance
Call UserControl.PropertyChange
End Property
When i do this I get this in the list of values i can use
None
o3D
What I want to get is
None
3D
How can I make this work?
Thank You
I am almost certain you must always begin with a string.
ASKER
That is the problem what I was wondering is, is it possible to make the dropdown list different?
I am not going to say "no" because I am not sure, but to my knowledge you can't use an integer(number) to begin. You need to use a string.
You could use: THREE3D
You could use: THREE3D
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Note: The brackets do not appear in the IDE Properties. You would also use brackets where you want multiple words such as [Hello World]
Its been more than 21 days since a comment has been added. I am going to leave this for clean up.
Recommend: Accept: danaseaman
Recommend: Accept: danaseaman
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.
I will leave the following recommendation for this question in the Cleanup topic area:
[Accept: danaseaman comment]
Any objections should be posted here in the next 4 days. After that time, the question will be closed.
egl1044
EE Cleanup Volunteer
I will leave the following recommendation for this question in the Cleanup topic area:
[Accept: danaseaman comment]
Any objections should be posted here in the next 4 days. After that time, the question will be closed.
egl1044
EE Cleanup Volunteer