Current location: Hot Scripts Forums » Programming Languages » Visual Basic » Need help "stopwatch"


View Poll Results: Please some on help meee
help 0 0%
help 0 0%
help 0 0%
help 0 0%
Voters: 0. You may not vote on this poll

Need help "stopwatch"

Reply
  #1 (permalink)  
Old 02-12-04, 09:33 AM
nrothwelluk nrothwelluk is offline
New Member
 
Join Date: Feb 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Question Need help "stopwatch"

This is stopwatch i am doing for my project!!!
I need help" would ne one be able too finish off it !!! or help me too put in get tick count, dont know how too put it in too the program

The program is surrpose too be a simple stopwatch that when stoped the time should keep going and should display the time when stoped in a lable box

would be very greatfull if someone would help



Dim sec As Single, min As Single, hour As Single, milli As Single
Private Sub cmdEnd_click()
End
End Sub


Private Sub cmdStart_click()
Tmrwatch.Interval = 10
End Sub

Private Sub cmdStop_Click()
Tmrwatch.Enabled = True
lbltime2.Caption = lbltime
End Sub

Private Sub Tmrwatch_Timer()

milli = milli + 1
If milli >= 100 Then sec = sec + 1: milli = 0
If sec >= 60 Then min = min + 1: sec = 0
If min = 60 Then hour = hour + 1: min = 0
lbltime.Caption = Format(Str(hour), "00") & ":" & _
Format(Str(min), "00") & ":" & _
Format(Str(sec), "00") & ":" & _
Format(Str(milli), "00")
End Sub
Private Sub cmdReset_Click()
lbltime.Caption = "00.00.00.00" 'reset watch
lbltime2.Caption = "00.00.00.00"
sec = 0
min = 0
hour = 0
milli = 0
Tmrwatch.Enabled = True
End Sub
Reply With Quote
  #2 (permalink)  
Old 02-12-04, 10:28 AM
snaip's Avatar
snaip snaip is offline
iNET Interactive
 
Join Date: Nov 2003
Posts: 997
Thanks: 2
Thanked 7 Times in 6 Posts
Off-topic: What you created that poll?!
__________________
Regards,
Ahmad Permessur
Team HotScripts
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT -5. The time now is 01:19 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.