![]() The following table lists some of the most commonly used properties of Timer class in visual basic. In case, if we want to raise the Elapsed event only once after the specified interval has elapsed, then we need to set the AutoReset property to false. The AutoReset property is used to configure the timer object to raise an elapsed event repeatedly at the specified interval of time defined by the Interval property. ![]() Here, the Interval property is used to specify the time interval to raise an Elapsed event ( TimerEvent) and the Enabled property is used to specify whether the timer object should raise an Elapsed event or not. If you observe the above code, we created a timer object by using the Timer class. AddHandler timer.Elapsed, AddressOf TimerEvent
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |