| | |
Ten minute timer ???
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Dec 2006
Posts: 3
Reputation:
Solved Threads: 1
:cheesy: Brief Intro: I am new to Visual Basic but have been playing with a USB PC Interface and have got to grips with some VERY basic VB6 commands and am trying to expand my "vocabulary" with hopefully the help of your kind and learned selves.
Best Wishes for the Festive Season and here goes.
I want to set a timer from a button click to run for ten minutes then go off, but can only get the timer in vb6 to run for 10000 milliseconds ! any help would be great.
Thanks Newbie Dogfish
P.S.
Sorry for posting in the wrong area before this ( you know what we're like, play with the remote first, then read the manual when you can't get it working)
Best Wishes for the Festive Season and here goes.
I want to set a timer from a button click to run for ten minutes then go off, but can only get the timer in vb6 to run for 10000 milliseconds ! any help would be great.
Thanks Newbie Dogfish
P.S.
Sorry for posting in the wrong area before this ( you know what we're like, play with the remote first, then read the manual when you can't get it working)
•
•
•
•
I want to set a timer from a button click to run for ten minutes then go off, but can only get the timer in vb6 to run for 10000 milliseconds ! any help would be great.
Regardless, you can just count the number of times the timer kicks off, and when it gets to the 10-minute count, you're done.
The 3 Laws of the Procrastination Society:
1) Never do today that which can be put off until tomorrow
2) Tomorrow never comes
1) Never do today that which can be put off until tomorrow
2) Tomorrow never comes
Hi,
Set these properties for Timer Control :
Interval = 10000
Enabled = False
Place A Command Button cmdStart on the Form.
Caption ="Start"
Keep a Form Level Variable MyTime
I Hope It IS Clear
Regards
Veena
Set these properties for Timer Control :
Interval = 10000
Enabled = False
Place A Command Button cmdStart on the Form.
Caption ="Start"
Keep a Form Level Variable MyTime
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
Dim MyTime As Long Private Sub cmdStart_Click() MyTime = 0 Timer1.Enabled =True cmdStart.Enabled = False End Sub Private Sub Timer1_Timer() MyTime = MyTime +1 If MyTime >= 60 Then MyTime = 0 Timer1.Enabled = False MsgBox "Time Out!!" cmdStart.Enabled = True End If End Sub
I Hope It IS Clear
Regards
Veena
![]() |
Similar Threads
- Please Help me with VB Timer (Visual Basic 4 / 5 / 6)
- More timer based questions ?? (Visual Basic 4 / 5 / 6)
- Java tutor needed BADLY (Java)
- Visualbasic - Timer Interval Help (Visual Basic 4 / 5 / 6)
- Timer Question (Visual Basic 4 / 5 / 6)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Listboxes and scroll bars
- Next Thread: How to automate some interaction between "Word" and "Access" documents?
| Thread Tools | Search this Thread |
Tag cloud for Visual Basic 4 / 5 / 6
* 6 429 2007 access activex add age append application basic beginner birth bmp calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver subroutine table tags textbox time timer urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows






