combo box color

mr_bob

New member
Local time
Today, 10:58
Joined
Oct 11, 2012
Messages
2
I would like to change the background color when I click on the combo box. I can change font color and the normal background color of the combo box. :cool:
 
You can use the combo box's On Get Focus and On Lost Focus events to make the color change when you click on it. For instance:
Code:
Private Sub cmbExample_GotFocus()
    Me.cmbExample.BackColor = vbGreen
End Sub

Private Sub cmbExample_LostFocus()
    Me.cmbExample.BackColor = vbWhite
End Sub
 

Users who are viewing this thread

Back
Top Bottom