|
-
Nov 10th, 2001, 07:17 PM
#1
Making An ActiveX Control - Enumeration Question...
Hi,
I'm making an ActiveX Control, which is basically a label that shows the date in a game, and it will have some methods like .nextday .prevday and so on.
Now, what I want is that the user can select the properties:
DayName
DayNum
MonthName
MonthNum
Year
All pretty self-explanetary. I have the Day Names and Month Names in an enumeration in the general declerations, and if the day number is changed the day name is changed and so on.
Now, what I want to happen is, when I change the day or month or year, it updates the caption of the label. How do I do this?
How would I make it so that the caption cant be manually changed? Do I just not add the caption property?
Would I change the caption in the Let part of the sub? I got a type mismatch when I tried that, something to do with the enumeration i presume, as the year worked fine..
-
Nov 14th, 2001, 07:33 PM
#2
Frenzied Member
You're on the right track with Let...
Have a separate Let sub for each property and update the label.
If it no work, post code for examination.
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
|