stevekos07
Registered User.
- Local time
- Today, 14:46
- Joined
- Jul 26, 2015
- Messages
- 174
Hello. I have been having trouble accomplishing what I thought would be a fairly simple task. I have a form with a combobox, which I want to be able to change the forecolor of on double-click. So if it is black, doubleclick would turn the font red and vice versa. This is the code I have for it so far but it doesn't seem to be working. Any assistance would be greatly appreciated.
Private Sub Combo0_DblClick(Cancel As Integer)
Select Case ForeColor
Case "#ED1C24"
Me.Combo0.ForeColor = "#000000"
Case "#000000"
Me.Combo0.ForeColor = "#ED1C24"
End Select
End Sub
Private Sub Combo0_DblClick(Cancel As Integer)
Select Case ForeColor
Case "#ED1C24"
Me.Combo0.ForeColor = "#000000"
Case "#000000"
Me.Combo0.ForeColor = "#ED1C24"
End Select
End Sub