What are you writing?!!
If RadioButton4.Checked = True Then
Formally, not a bug, but do you really understand what are you doing?!
You compare Boolean with True which is always equal to the same Boolean.
This is approximately the same as writing
If 2=2
. Must be:
If RadioButton4.Checked = True Then
How come you compare
If ExitTimeOut1 = TextBox4.Text Then
???
Why the next condition depends on Text? It can be anything. You should understand what do you want. Don't even explain it… understand yourself…
Do you use Debugger? You should.
[EDIT]
Now you explained what you compare. Dreadful!!! It won't work.
The condition
If ExitTimeOut1 = TextBox4.Text Then
may never be true, or will happen with low probability. In one tick time can be less, another time more. Isn't that obvious?
Therefore, you always need to use ">=".
Convert text to
System.DateTime trigger
, compare
If System.DateTime >= trigger Then '...
.
—SA