trigger an evet in 12 AM Mid night

  • Thread starter Thread starter Cor Ligthert
  • Start date Start date
C

Cor Ligthert

Hi Reny,

I think that when I would do this, I would take the time from Now and then
let the thread sleep as much ticks, until it was 12 AM Mid night.

threading.tread.sleep(ticks)

Just an idea.

Cor
 
Hi,
I want to trigger an evet in 12 AM Mid night in order to close a file and
reopen an another file.How do i do this in VB.NET?
Please help me out
Reny
 
The way I'd do it, is drop a Timer on the form, set the interval to
60000 (1 minute)

then in the tick event of the timer....

if hour(now)=0 and minute(now)=0 then
....
....
End if


Scott
 
* "Reny J Joseph Thuthikattu said:
I want to trigger an evet in 12 AM Mid night in order to close a file and
reopen an another file.How do i do this in VB.NET?

You can add a task to Windows' task manager to launch your application
at midnight.
 
Back
Top