If txtDOB.Text.Trim.Length = 0 Then
picDOB.Image = Image.FromFile("error.gif")
picDOB.Image = Image.FromFile("ok.gif")
With the above in KeyDown method for txtDOB, if i delete the spaces in the textbox, then press a character, it will still display as error, unless I type in another character, which now knows OK.
However if all is in the KeyUp method, all is fine, but if I hold down a letter it will only execute my codes after spamming, which is useless.