Results 1 to 4 of 4

Thread: ActiveX and Property pages

  1. #1

    Thread Starter
    Lively Member Maartin's Avatar
    Join Date
    Jan 2000
    Location
    Benoni, Gauteng, South-Africa
    Posts
    99

    Exclamation

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

  2. #2
    Fanatic Member
    Join Date
    Jan 2001
    Location
    Vietnam
    Posts
    613
    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

  3. #3
    ChuckB
    Guest

    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.

  4. #4

    Thread Starter
    Lively Member Maartin's Avatar
    Join Date
    Jan 2000
    Location
    Benoni, Gauteng, South-Africa
    Posts
    99

    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
  •  



Click Here to Expand Forum to Full Width