ComboBox with different color

josephyeo

Registered User.
Local time
Today, 12:55
Joined
Dec 10, 2000
Messages
13
Can anyone tell me how to create a combo box with its drop down in a different color. I have a column of combo boxes and when one box is opened, it is hard to tell where the selections start or end.
 
You could change the colour of the combo while it has the focus by using the Got and Lost Focus events like this:


Private Sub MyCombo_GotFocus()
Me.MyCombo.ForeColor = 255
End Sub

Private Sub MyCombo_LostFocus()
Me.MyCombo.ForeColor = 0
End Sub

HTH

Mike
 

Users who are viewing this thread

Back
Top Bottom