|
-
Oct 20th, 2002, 08:39 PM
#1
Thread Starter
PowerPoster
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:
Dim myColor As Long
myColor = Val(vbButtonFace)+1000
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|