how does timer work.........

  • Thread starter Thread starter Supra
  • Start date Start date
S

Supra

how does timer control work in webform? i can only do in vb.net
regards
 
i dragged time rcontrol on webform on component toolbox . using
pagelaout to flowlayout instead of gridlayout modes
regards
 
i'm using countdown timer. i have done this in vb.net but moving on to
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.
regards
 
Supra said:
i dragged time rcontrol on webform on component toolbox . using pagelaout
to flowlayout instead of gridlayout modes

Which timer component are you using? There are several timer classes in the
..NET Framework.
 
in webform i slected modes to flowlayout u will see on webform toolbox
component then u c timer control in component toolbox in webform .
regards
 
if u switch to flowlayout to gridlayout.there is not timer in webform
toolbox
regards
 
where would i put it. i got lblTimeLeft.Text = "Time left : " &
Format(sT, "mm") & " : " & Format(sT, "ss") displayed showing not
counting down
regards
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top