Click to See Complete Forum and Search --> : ActiveX and Property pages
Maartin
Feb 12th, 2001, 07:40 AM
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.
TheBao
Feb 13th, 2001, 12:52 AM
Create a type enum. For example:
Public Enum Testing
Start = 0
Finish = 1
End Enum
Then in your properties page, use this type
Regards,
TheBao
ChuckB
May 18th, 2002, 12:45 AM
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.
Maartin
May 21st, 2002, 01:21 PM
Glad to hear that it helped you out, I was realy hurting to get it to work so I know the feeling !!
Cheers.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.