Results 1 to 2 of 2

Thread: Background Color

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2002
    Posts
    225

    Background Color

    I have created an activeX control that acts like a kind of calculator. When a user uses my control on his form, I want him to be able to select a property, for instance, form color and have the background color of the control change.

    I decided that I could do this using the SetProperty procedure and having a color dialog box come up for a selection to be made. Unfortunately, this doesn't seem to be working. I don't think that you can declare a common dialog control instance from code without first placing it on the form. Any other ideas out there on how I could do this?

    I am very new to activeX so I need all the help I can get.

    Thanks

    Tesita

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    Change the return type of the property to OLE_COLOR. Then you will get the color list like for the BackColor of a Form.

    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

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