In the
Click
event of
Button3
, the statements
Label1.Text = comboresult
tmr = Label1.Text
make
comboresult
equal to
tmr
. So, after pressing the forward button, when the backward button is pressed, the following if condition in the
Click
event of
Button2
will be true
If comboresult = tmr Then
Exit For
End If
hence, the backward logic may not be working after pressing the forward button.