Question Class with several possible values

Pirahnaplant

Well-known member
Joined
Mar 29, 2009
Messages
75
Programming Experience
3-5
I want to create a class that has a list of possible values that can be used.

Example: when you create one like this: Dim a As ClassName = , a list will pop up in intellisense.
or when the class is used as a property on a usercontrol, you can click the combobox and pick from the values.

Here is what the value list looks like for the Color class:
vs value selection.PNG
 
That's some good info that JohnH has provided and it might be just what you need. Then again, you might be a little off the mark in what you're looking for in the first place. Are you sure that you want a class that can provide a list of Shared property values and not an enumeration?

By the way, Color is a structure, not a class.
 
Back
Top