Timer Label Visibility Question

Tech-Archive recommends: Fix windows errors by optimizing your registry



I have the following code associated with a form that has a timer control
and a label called "lblTime". (to display the time)

I have another procedure "cmdLogIn" associated with the form and that
procedure consists of clicking on a command button which was supposed to, as
part of its activities, toggle the time display label "lblTime" to Visible
with a statement lblTime.Visible = True.

Did not work. What am I doing wrong? Is is a problem togglling something
assiciated with a timer that is outside the Timer Sub itself?


Private Sub Timer1_Timer()

lblTime.Visible = False
If lblTime.Caption <> CStr(Time) Then
lblTime.Caption = Time
End If
End Sub

Thanks

AK





.


Quantcast