Results 1 to 2 of 2

Thread: Making An ActiveX Control - Enumeration Question...

  1. #1
    Cheeko
    Guest

    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..

  2. #2
    Frenzied Member mlewis's Avatar
    Join Date
    Sep 2000
    Posts
    1,226
    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.
    M. Lewis
    Pi-Q Software
    How many mouse clicks does it take to cook breakfast?

    Blargh! I am dead!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width