Hi there,
Long story short, I want to create a property that has a dropdown list with a few items in there. These items will be constants in the actual OCX itself.
Printable View
Hi there,
Long story short, I want to create a property that has a dropdown list with a few items in there. These items will be constants in the actual OCX itself.
Create a type enum. For example:
Then in your properties page, use this typeCode:Public Enum Testing
Start = 0
Finish = 1
End Enum
Regards,
TheBao
Hi,
I was searching for an answer and found this thread. Perfect! I now display a list of options for User Control properties.
I was pleasantly surprised to see that after adding the Enum code
Public Enum Orientation
North=0
East =1
South=2
West=3
End Enum
that whenever I typed in the code the above list of four constants would appear. Amazing!
I wanted you to know that I truly benefited from your posting a year ago.
Thanks,
Chuck B.
Glad to hear that it helped you out, I was realy hurting to get it to work so I know the feeling !!
Cheers.