You could for example have the following code (NOTE: Not working, just off
the top of my head)
while(true)
{
If(CurrentDay != DateTime.Now.Day)
{
CurrentDay = DateTime.Now.Day;
//..Fire you code/Event here
}
}
Once again, this is unused untested and very resource hungry due to the fact
of the while loop.
However, I do believe that a safer option would be to use the Task scheduler
included with Windows, as this is a more proven and well tested component.
It could be worth having a read of:
http://blogs.msdn.com/dditweb/archiv...0_-Part-I.aspx http://www.codeproject.com/csharp/TSNewLib.asp
You could make the Windows Task Scheduler execute a application (unsure if
it can run DLL’s, however you could make a exe to use your DLL) every X time
during the day and also build in the ability to self modify its own schedule
based on what day it is.
Disclaimer: Any source code is posted without warranty or grantee and should
be used at your own risk.