Library tutorials & articles

Timer control

Properties

The Enabled property specifies whether the procedure should be called at the specified interval. If set to False, the procedure will not be called. This can be set a run-time and design-time.

The interval property specifies how often the procedure is called in milliseconds that takes effect when a Timer control's Enabled property is set to True. For example, a value of 10,000 milliseconds equals 10 seconds. The maximum, 65,535 milliseconds, is equivalent to just over 1 minute. This can be set a run-time and design-time.

Please note that the Timer control is not always accurate, and if your PC is very busy, the Timer event will not fire until it has some free time.

Comments

  1. 09 Jul 2006 at 08:34

    Hi!

    I created a control that I named KYNOUAJAXContainer that can be found at http://www.kynou.com/KYNOUControls/KYNOUControls.zip. This control allows you to add regular ASP.NET controls into it and they all become AJAX enabled. You can use this container control as a sort of timer control for ASP.NET. This is because the container control has a property called ShouldRefresh. When this property is set to true, it will refresh the content of all the controls inside of the container every RefreshInterval seconds (RefreshInterval is another property of the container control).
    I posted tutorials that will walk you through the steps to use the control at http://www.KYNOU.com under the Tutorial Index => Ajax => KYNOU AJAX Controls link

  2. 25 May 2005 at 08:36

    How could i make a timer activate every 3 hours to check the database and findout any new records were added?


    Thanks in advance


    E.Screw

  3. 24 May 2002 at 02:46

    Sometimes, if the timer doesn't fire, one can try putting in a doevents statement. [Someone's got any experience with that one?]

  4. 01 Jan 1999 at 00:00

    This thread is for discussions of Timer control.

Leave a comment

Sign in or Join us (it's free).

James Crowley James first started this website when learning Visual Basic back in 1999 whilst studying his GCSEs. The site grew steadily over the years while being run as a hobby - to a regular monthly audience ...

Related discussion

Related podcasts

  • Christian Beauclair

    14 mai 2008 (�mission #0074) ::.Christian Beauclair: Stratégies de migration VB6 vers .NET Nous discutons avec Christian Beauclair des stratégies de migration VB6 vers .NET. Entre autres, nous discutons comment utiliser le "VB 6 Code Advisor" et le "Interop Forms Toolkit" pour ajouter la puiss...

Want to stay in touch with what's going on? Follow us on twitter!