S
Supra
i can't get countdown timer working in webform.....
Private Sub btnStart_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnStart.Click
Dim rnd1 As New Random
lblMin.Text = Int(rnd1.Next(15, 30))
lblSec.Text = Int(rnd1.Next(1, 60))
tmrSuduko.Enabled = True
tmrSuduko.AutoReset = True
end sub
Private Sub tmrSuduko_Elapsed(ByVal sender As System.Object, ByVal e As
System.Timers.ElapsedEventArgs) Handles tmrSuduko.Elapsed
tmrSuduko.Enabled = True
If Format(sT, "mm") & " : " & Format(sT, "ss") <> "00 : 00" Then
sT = DateAdd(DateInterval.Second, -1, sT)
lblTimeLeft.Text = "Time left : " & Format(sT, "mm") & " :
" & Format(sT, "ss")
tmrSuduko.AutoReset = True
tmrSuduko.Enabled = True
Else
End If
End Sub
i don't know anything about Elapsed keyword. work!!!!!!
regards
Private Sub btnStart_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnStart.Click
Dim rnd1 As New Random
lblMin.Text = Int(rnd1.Next(15, 30))
lblSec.Text = Int(rnd1.Next(1, 60))
tmrSuduko.Enabled = True
tmrSuduko.AutoReset = True
end sub
Private Sub tmrSuduko_Elapsed(ByVal sender As System.Object, ByVal e As
System.Timers.ElapsedEventArgs) Handles tmrSuduko.Elapsed
tmrSuduko.Enabled = True
If Format(sT, "mm") & " : " & Format(sT, "ss") <> "00 : 00" Then
sT = DateAdd(DateInterval.Second, -1, sT)
lblTimeLeft.Text = "Time left : " & Format(sT, "mm") & " :
" & Format(sT, "ss")
tmrSuduko.AutoReset = True
tmrSuduko.Enabled = True
Else
End If
End Sub
i don't know anything about Elapsed keyword. work!!!!!!
regards