Timer


The Timer component periodically raises a Tick event so the program can take action at specific intervals.

The component’s Interval property determines the number of milliseconds (1000ths of a second) between events. This property is a 32-bit integer that must be greater than zero, so it can hold values between 1 and 2,147,483,647. If you set Interval to its maximum value 2,147,483,647, the component raises its Tick event roughly every 24.86 days.

The Timer component’s Enabled property determines whether the Timer generates Tick events. The component continues raising its event as long as Enabled is True.

The component’s Start and Stop methods simply set its Enabled property to True and False, respectively.




Visual Basic 2005 with  .NET 3.0 Programmer's Reference
Visual Basic 2005 with .NET 3.0 Programmer's Reference
ISBN: 470137053
EAN: N/A
Year: 2007
Pages: 417

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net