Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i make A Birth Day Wishing Application in Vb.net and Problem is i using timer get data through a query but timer is communicate to database every second and Get Data. and i tried to communicate with database only one time afire 24 Hours when date is change else not communicate to database using timer in vb.net
Posted

1 solution

Set the timer to run once every 24 hours.
Store the last run date in a database or even in local memory.

When the timer runs, when the last run date is less than the current date, execute your query code.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900