I have a textbox that should display for 6 seconds then disappear.
I am using the form timer to control this but the time the textbox stays visible is random, from virtually nothing up to the desired 6 seconds.
See the code below.
All my reading indicates setting the timer interval to 0 should restart the timer but this seems not to be the case.
If I set the interval to 0 in the form properties the timer does not start even after me.TI = 6000
Is there a way, other than close and open the form, to consistently reset the timer to 0?
All the code below the timer interval works fine, it's just the timer that's a problem
I am using the form timer to control this but the time the textbox stays visible is random, from virtually nothing up to the desired 6 seconds.
See the code below.
All my reading indicates setting the timer interval to 0 should restart the timer but this seems not to be the case.
If I set the interval to 0 in the form properties the timer does not start even after me.TI = 6000
Is there a way, other than close and open the form, to consistently reset the timer to 0?
All the code below the timer interval works fine, it's just the timer that's a problem
Code:
Private Sub Form_Timer()
Me.TimerInterval = 0
Me.TimerInterval = 6000
If Me.txtMessage.Visible = True Then
Me.txtMessage.Visible = False
End If
If Me.txtAllGood.Visible = True Then
Me.txtAllGood.Visible = False
End If
If Me.txtExpanded.Visible = True Then
Me.txtExpanded.Visible = False
End If
If strBC > "" Then
Me.BtnBCPhoto.Visible = True
End If
If strHerb > "" Then
Me.btnJPG.Visible = True
End If
End Sub