Results 1 to 2 of 2

Thread: Enum

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2002
    Location
    Israel
    Posts
    1

    Arrow Enum

    Help Needed creating ENUM for a .ctl

    I have declared on the general section of the UserControl Code window:

    Public ENUM bgColor
    myWhite = 0
    myBlack = 1
    myGreen = 2
    ... etc.
    End ENUM

    and used the ActiveX control Interface wizard to associate a new Property named bgColor to a textbox.BackColor property but it won't function (Design time), I keep getting the original colors by Microsoft.
    ABN

  2. #2
    PowerPoster sunburnt's Avatar
    Join Date
    Feb 2001
    Location
    Boulder, Colorado
    Posts
    1,403
    are you using something like this?

    VB Code:
    1. Public Property Let myBGColor(... as bgColor)
    2. ...
    3. End Property
    4.  
    5. Public Property Get myBGColor() as bgColor
    6. ...
    7. End Property
    Every passing hour brings the Solar System forty-three thousand miles closer to Globular Cluster M13 in Hercules -- and still there are some misfits who insist that there is no such thing as progress.

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