Learn how to Make Money Online doing freelancing, Affiliate Marketing, Blogging and many more ...
Go4Expert
Go4Expert RSS Feed

Go Back   Programming and SEO Forum >  Go4Expert > Articles / Source Code > Programming > C#

Discuss / Comment  Copy HTML to Clipboard  Copy BBCode to Clipboard  | More
 
Bookmarks Article Tools Search this Article Display Modes

Difference between System.Windows.Forms.Timer and System.Timers.Timer


On 4th December, 2006
Cool Difference between System.Windows.Forms.Timer and System.Timers.Timer

Show Printable Version Email this Page Subscription Add to Favorites Copy Difference between System.Windows.Forms.Timer and System.Timers.Timer link

Author

shabbir ( Go4Expert Founder )

Shabbir is a developer in the field of Applications, web as well as database designing and is devoted to the optimization and usability of the code. He maintains Programming forum and is a C++ addict.


All articles By shabbir

Recent Articles

Similar Articles

System.Windows.Forms.Timer



1. It's a forms-based timer.

2. After creating it, you can set the interval which elapses between ticks using the Interval and hook up a delegate to its Tick event.

3. Calling Start and Stop methods, start and stop of the timer.

4. It runs entirely on the UI thread, So some of the UI related operations is to be done in this timers.

5. Long UI operation may result in loosing some ticks

System.Timers.Timer



1. Instead of a Tick event, it has the Elapsed event.

2. As before, 3. Calling Start and Stop methods, start and stop of the timer.

3. The AutoReset property determines whether or not the timer should fire the event once and then stop, or keep going in a fire event / wait cycle. System.Windows.Forms.Timer does not have this property

4. Setting the synchronizing object to a UI control makes the event fire on that control's UI thread.
Discuss / Comment  Copy HTML to Clipboard  Copy BBCode to Clipboard  | More


Currently Active Users Reading This Article: 1 (0 members and 1 guests)
 
Article Tools Search this Article
Search this Article:

Advanced Search
Display Modes
Bookmarks

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

 

All times are GMT +5.5. The time now is 05:34 AM.