PC Review


Reply
Thread Tools Rate Thread

Checkbox - Change color of label when clicked

 
 
=?Utf-8?B?VGFtbXkgSA==?=
Guest
Posts: n/a
 
      7th Mar 2007
Is there a way to change the background color of a checkbox label when it is
checked and change it back to white if it is un-checked?
 
Reply With Quote
 
 
 
 
Keith74
Guest
Posts: n/a
 
      7th Mar 2007
Hi

Private Sub CheckBox1_Change()
If CheckBox1.Value = True Then
CheckBox1.BackColor = RGB(0, 255, 0)
Else
CheckBox1.BackColor = RGB(255, 255, 255)
End If

End Sub

hth

 
Reply With Quote
 
=?Utf-8?B?VGFtbXkgSA==?=
Guest
Posts: n/a
 
      8th Mar 2007
Thanks Keith! Works great.

"Keith74" wrote:

> Hi
>
> Private Sub CheckBox1_Change()
> If CheckBox1.Value = True Then
> CheckBox1.BackColor = RGB(0, 255, 0)
> Else
> CheckBox1.BackColor = RGB(255, 255, 255)
> End If
>
> End Sub
>
> hth
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to have a checkbox change color and text of a label control? Repent34 Microsoft Access Forms 13 24th Feb 2009 07:47 PM
Checkbox to change background color, font color and remove/ add bo Sara Microsoft Excel Misc 1 11th Nov 2008 08:17 PM
Change Macro button color after clicked Cong Nguyen Microsoft Excel Misc 2 30th Nov 2007 02:55 PM
Changing color of controls when a checkbox is clicked =?Utf-8?B?UmVib290S2lkRkw=?= Microsoft Access 6 1st Sep 2006 03:42 AM
Change tab text color when tab clicked ? David Microsoft Access Forms 2 26th Dec 2003 03:29 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:07 PM.