Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
C# Helper...
 
XML RSS Feed
Follow VBHelper on Twitter
 
 
MSDN Visual Basic Community
 
 
 
 
 
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-2010 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated