CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Color Property

  1. #1
    Join Date
    Apr 2000
    Posts
    737

    Color Property

    Hi, I need to add a color property in an active color so that when user click on it (in the property explorer), vb will show the color template just like other VB control. I use the built-in color property page, doesn't help. can anyone tell me how to do it ? thanks,


    HTH

    cksiow
    http://vblib.virtualave.net - share our codes

  2. #2
    Join Date
    Jun 2001
    Location
    MO, USA
    Posts
    2,868

    Re: Color Property

    The trick is to define your color property as OLE_COLOR object as in:


    option Explicit
    Dim oleColor as OLE_COLOR

    public property set Color(c as OLE_COLOR)
    oleColor = c
    End property

    public property get Color() as OLE_COLOR
    Color = oleColor
    End property





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

Featured