Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

timed program execution

Status
Not open for further replies.

scro11bar

Programmer
Oct 25, 2001
11
US
Hi,
Is there a way for a VB program to be set to run at a particular time (i.e. from 3:00 p.m. to 5:00 p.m.) Also, the timer control in VB has an upper limit of 65000 for its interval. Is there another similar control which has a greater upper limit?

G. Rush
 
put a timer in ur opeing form and put interval as 1000
write this code

Private Sub Timer1_Timer()
If Time() >= &quot;3:00:00 PM&quot; And Time <= &quot;5:00:00 PM&quot; Then
Form1.Show
Else
End
End If
End Sub

i hope this will help u

webspy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top