|
-
Feb 12th, 2001, 08:40 AM
#1
Thread Starter
Lively Member
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.
Have Fun ;-)
Maartin
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
if it ain't broke don't fix, rewrite it.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-
Feb 13th, 2001, 01:52 AM
#2
Fanatic Member
Create a type enum. For example:
Code:
Public Enum Testing
Start = 0
Finish = 1
End Enum
Then in your properties page, use this type
Regards,
TheBao
-
May 18th, 2002, 12:45 AM
#3
Properties and Enum
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.
-
May 21st, 2002, 01:21 PM
#4
Thread Starter
Lively Member
GOOD
Glad to hear that it helped you out, I was realy hurting to get it to work so I know the feeling !!
Cheers.
Have Fun ;-)
Maartin
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
if it ain't broke don't fix, rewrite it.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|