View Full Version : ComboBox with different color


josephyeo
12-12-2000, 10:05 PM
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.

Atomic Shrimp
12-13-2000, 01:08 AM
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