Search Tools Links Login

Command Button - Change Forecolor (Trick!)


Ever wanted to give your boring Command Buttons a different text color? Here's your chance ;)

Original Author: Kevin

Code




  


  


  


  


  


  


 

  Change the forecolor of a
  "Command Button"...
1)
  Add a check-box on your form and rename it to "Command1"

  2) Set it style-property to "1 - Graphical"

  3) Add the following code to "Command1_MouseUp"...

  

  Command1.Value = 0

  
Of
  course you could also use the hard-way, But I'd prefer this way.

  A check-box supports the same events anyway...


  I hope you liked this small trick.

  Kevin,


About this post

Posted: 2003-06-01
By: ArchiveBot
Viewed: 129 times

Categories

Visual Basic 6

Attachments

No attachments for this post


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.