What's Here?
- Members: 137,214
- Replies: 481,425
- Topics: 75,054
- Snippets: 2,567
- Tutorials: 675
- Total Online: 2,242
- Members: 111
- Guests: 2,131
|
A simpler way of making a toggle (or sticky) button than my previous example...
|
Submitted By: jens
|
|
|
Rating:
|
|
Views: 283 |
Language: Visual Basic
|
|
Last Modified: October 9, 2008 |
|
Instructions: Instructions in the code. |
Snippet
'==================================
' On a form, make a checkbox named
' Check1. Change its property style
' to "1 - Graphical" and put this
' code as it's click event.
' So much easier than the other
' one I submitted.
'----------------------------------
Private Sub Check1_Click()
If Check1.Value = vbChecked Then
Check1.ForeColor = vbRed
Check1.Caption = "Checked - ON"
Else
Check1.ForeColor = vbGreen
Check1.Caption = "Unchecked - OFF"
End If
End Sub
Copy & Paste
|
|
|
Reference Sheets
Bye Bye Ads
Monthly Drawing
Top Contributors
Top 10 Kudos This Month
|