Hello experts, i am trying to change the background color of a textbox control in my vb.net win app when the value in my textbox is less then 0. I tried using timers and threads but nothing seems to work. Basically I have a textfield that counts down when it goes past 0 i want it to flash red then back to its orginal color every second until the textfield is greater then or equal to 0. Here is what i tried.
Private Sub txtcount_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtcount.TextChanged
if val(txtcount.text) < 0
Private Sub Timer3_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer3.Tick
txtcount.background = color.red
system.threading.thread.sleep(500) 'pauses the red flash
txtcount.background = color.lightsteelblue 'Orginal color of textbox