Results 1 to 14 of 14

Thread: Make ButtonFace lighter [RESOLVED]

Threaded View

  1. #1

    Thread Starter
    PowerPoster MidgetsBro's Avatar
    Join Date
    Oct 2000
    Location
    Apparently, Internet.com
    Posts
    3,125

    Make ButtonFace lighter [RESOLVED]

    Hey everyone. I am trying to make vbButtonFace a little lighter. I don't mean to change system colors or anything, but I want to take the constant vbButtonFace, then add or subtract some from it to make it darker or lighter and place it in my own variable. I've tried this:
    VB Code:
    1. Dim myColor As Long
    2. myColor = Val(vbButtonFace)+1000
    3. myButton.BackColor = myColor
    But it gives me an invalid property value. I want to do this with vbButtonFace instead of a constant color because sometimes people have different colors on their systems other than the default grey, and I want my buttons to stand out a little from the background. This way if they have 3D Objects in their system settings set to a dark blue, then my buttons will be a little lighter blue, and if they have a yellow, then the buttons will be a darker yellow, etc...

    Thanks for any help.
    Last edited by MidgetsBro; Oct 20th, 2002 at 08:59 PM.
    <removed by admin>

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