View Single Post
Old 11-16-2007, 04:50 PM   #7
Derkel
N00B Pwner
 
Last Online: 10-07-2009 10:14 PM
Join Date: Apr 2007
Location: In a House
Posts: 453
Rep Power: 3
Rep Points: 10
Derkel is on a distinguished road
Feedback: (2)
Points: 7,615.51
Bank: 38,432.60
Total Points: 46,048.11
Autism - Derkel 
Xfire derkel
Re: Mega Post of Tuts

Changing Your Background Color
First add a check box.
Then add this to your text box:
Code:
Private Sub check1_Click()

If check1 = 1 Then
Form1.Check1.BackColor = vbRed 'this will change the color of the check box to red
Form1.BackColor = vbRed 'this will change the color of the form to red

ElseIf Check1 = 0 Then
Form1.Check1.BackColor = vbBlue 'this will change the color of the check box to blue
Form1.BackColor = vbBlue 'this will change the color of the form to blue

End If

End Sub

Last edited by Derkel; 11-16-2007 at 05:05 PM.
Derkel is offline   Reply With Quote