Scheduling events??

Posted on 2006-04-18
Last Modified: 2010-08-05
Hello everyone..
I want to be able to schedule my program to send emails on every monday,wednesday and friday....

I dont wanna know how to send emails or how to do the whole thing...I SIMPLY WANNA KNOW HOW TO SCHEDULE EVENTS...WITHOUT USING TIMER!!

Thanks :)
Question by:godwindotnet
    LVL 44

    Expert Comment

    Hello godwindotnet,

    not sure if it is an option but you could run your app on the windows scheduler which is great for that sort of thing

    hope this helps a bit
    LVL 85

    Accepted Solution

    If you don't want to use a Timer then use the System.Threading.Thread.Sleep() function.  Calculate the time interval needed to your next "event" in milliseconds and the put your app to sleep for that duration.  When it wakes up it will be the correct time.  If you have a GUI then hide your app first as it will unresponsive during the Sleep interval.  Or you could create a Class that encapsulates a Thread.  Make the encapsulated thread sleep and when it wakes up raise an event from your Class to notify the main UI.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
    Introduction When many people think of the WebBrowser ( control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now