"Aoli" <Ao...@Aoli.com> wrote |
| Checkbox Style Graphical
|
| make background color green when pressed in code.
I'm not sure if this is what you want, and you didn't
show your code, but this works for me:
Private Sub Check1_MouseDown(Button As Integer, Shift As Integer, X As
Single, Y As Single)
Check1.BackColor = 65280 '-- that's bright green. this is grass green:
32768
End Sub
Private Sub Check1_MouseUp(Button As Integer, Shift As Integer, X As Single,
Y As Single)
Check1.BackColor = vbButtonFace
End Sub
The only trouble is that people don't hold it down, so
you never see the color change. If you just want it
to change semi-permanently you could track it:
If backcolor = x then... else...