473,385 Members | 1,927 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

trigger an evet in 12 AM Mid night

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
Nov 20 '05 #1
3 862
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
Nov 20 '05 #2

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
On Sat, 17 Apr 2004 16:05:25 +0400, "Reny J Joseph Thuthikattu"
<re**@bxtech.com> wrote:
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


Nov 20 '05 #3
* "Reny J Joseph Thuthikattu" <re**@bxtech.com> scripsit:
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.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Trevor Fairchild | last post by:
I am trying to create a very minimal auditing system for a series of databases. I am in the process of writing Update triggers for 5 Tablse. I will write a trigger for each table-the trigger's...
6
by: Scott CM | last post by:
I have a multi-part question regarding trigger performance. First of all, is there performance gain from issuing the following within a trigger: SELECT PrimaryKeyColumn FROM INSERTED opposed...
6
by: Mary | last post by:
We are developing a DB2 V7 z/OS application which uses a "trigger" table containing numerous triggers - each of which is activated by an UPDATE to a different column of this "trigger" table. When...
0
by: Dave Sisk | last post by:
I've created a system or external trigger on an AS/400 file a.k.a DB2 table. (Note this is an external trigger defined with the ADDPFTRG CL command, not a SQL trigger defined with the CREATE...
8
by: gnuoytr | last post by:
rather than deal with some COBOL code, which i wouldn't write, i thought it would be common practice to use a trigger to update a sequence column with a trigger. i'm testing on XDB (Mainframe...
0
by: JohnO | last post by:
Thanks to Serge and MarkB for recent tips and suggestions. Ive rolled together a few stored procedures to assist with creating audit triggers automagically. Hope someone finds this as useful as...
0
by: Aleida | last post by:
I am making webservice that updates data of a table of DB2 to one in SQL and these in first go off to certain time of the night but in case that new data are added to the table that this in DB2 is...
1
by: Aleida | last post by:
I am making webservice that updates data of a table of DB2 to one in SQL and these in first go off to certain time of the night but in case that new data are added to the table that this in DB2 is...
9
by: Ots | last post by:
I'm using SQL 2000, which is integrated with a VB.NET 2003 app. I have an Audit trigger that logs changes to tables. I want to apply this trigger to many different tables. It's the same trigger,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.