Try this
vb Code:
Dim dtTimeNow As DateTime dtTimeNow = CDate(TextBox1.Text) If dtTimeNow.AddSeconds(2) <= TimeOfDay AndAlso TimeOfDay >= dtTimeNow.AddSeconds(-2) Then MessageBox.Show("You Win") End If
|
Results 1 to 3 of 3
Thread: I need help with something.Threaded View
|
Click Here to Expand Forum to Full Width |