If you just want to change the back color on focus or lost focus you can use the events below. Otherwise I need to know what you intention is. Do you want it to turn a different color if it is not the correct format? (Since you usually use a combobox so that you force the user to use the format you want this does not seem likely)
Please give more details on exactly what you are trying to do.
Private Sub ComboBox1_GotFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles ComboBox1.GotFocus
ComboBox1.BackColor = Color.Blue
End Sub
Private Sub ComboBox1_LostFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles ComboBox1.LostFocus
ComboBox1.BackColor = Color.Red
End Sub
DotNetDoc
M.C.S.D.
---------------------------------------
Tell me and I forget. Show me and I remember. Involve me and I understand.
- Anonymous Chinese Proverb
-----------------------------------
If you can't explain it simply, you don't understand it well enough.
- A. Einstein