Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
 
 
 
500MB 27GB Web Hosting - $9.95/Month
 
 
 
 
 
Old Pages
 
Old Index
Site Map
What's New
 
Books
How To
Tips & Tricks
Tutorials
Stories
Performance
Essays
Links
Q & A
New in VB6
Free Stuff
Pictures
 
 
 
TitleMake a button with colored text using a CheckBox
KeywordsCheckBox, command button, CommandButton, button, colored text
CategoriesControls
 
It looks like and acts like a button, but it is a checkbox.

Make a button with colored text using a CheckBox.

The important step is to use a CheckBox with Style = Graphical.

Thanks to Tim Rude.

 
Private Sub Check1_Click()
    If Check1.Value = vbChecked Then
        Check1.Value = vbUnchecked

        ' Do something.
        MsgBox "Clicked"
    End If
End Sub
 
Formatted by Neil Crosby
 
 
Copyright © 1997-2003 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated