Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27333

VS 2010 [RESOLVED] Timer won't tick

$
0
0
hi,

for few days this has been bugging me, tried 100s of ways to fix to no avail.. So it's time to ask,my time won't tick, any1 know?

this is in my button click: Wait.Enabled = True

Code:

    Private Sub Wait_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Wait.Tick
        Dim timer As Integer = Val(DelayTime.Value)

        If timer >= 1 Then
            timer -= 1
            lblStatus.Text = "Status: Waiting " & timer.ToString()
        Else
            timer = 0
            Wait.Enabled = False
        End If

    End Sub

say i set 20 here:
Dim timer As Integer = Val(DelayTime.Value)

it just shows:
Status: Waiting 19

it should countdown n it's not, why?

Viewing all articles
Browse latest Browse all 27333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>