G
Guest
Hi All,
I am following text book timer usage as defined in the on-line VB help. The
timer works partly. I'm using the following timer code segment in my
application. :
Public Sub MyTimer(ByVal sender As Object, ByVal e As ElapsedEventArgs)
lblStatText.Text = ">> Processing - " & Str(nr)
MsgBox("On timer" & Str(nr), MsgBoxStyle.OKOnly)
End Sub
The problem is this... I can't get the lblStatText.Text line to display in
my form. I think the application is hanging when it gets to this line. If I
comment the lblStatText... line out the MsgBox line works just fine.
I've rewritten the line to use a text box instead and still have the same
problem.
I've done everything with lblStatText to insure that it is spelled corrected
and works. It works fine in other subs just not in the timer handler.
Any ideas?
Thanks,
George
I am following text book timer usage as defined in the on-line VB help. The
timer works partly. I'm using the following timer code segment in my
application. :
Public Sub MyTimer(ByVal sender As Object, ByVal e As ElapsedEventArgs)
lblStatText.Text = ">> Processing - " & Str(nr)
MsgBox("On timer" & Str(nr), MsgBoxStyle.OKOnly)
End Sub
The problem is this... I can't get the lblStatText.Text line to display in
my form. I think the application is hanging when it gets to this line. If I
comment the lblStatText... line out the MsgBox line works just fine.
I've rewritten the line to use a text box instead and still have the same
problem.
I've done everything with lblStatText to insure that it is spelled corrected
and works. It works fine in other subs just not in the timer handler.
Any ideas?
Thanks,
George