Try this

vb Code:
  1. Dim dtTimeNow As DateTime
  2.         dtTimeNow = CDate(TextBox1.Text)
  3.         If dtTimeNow.AddSeconds(2) <= TimeOfDay AndAlso TimeOfDay >= dtTimeNow.AddSeconds(-2) Then
  4.             MessageBox.Show("You Win")
  5.         End If