Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

Does using multiple timers in one application cause a performance hit?

$
0
0

I'm coding an MDI application in VB.NET, VS2010.  The app may have several child windows open at any one time.  I have to poll the database for new data for each window every 5 seconds.  When new data is found, the data will be added to the appropriate window.

I'm going to use System.Windows.Forms.Timer.  What are the pros and cons of having one Timer on the MDI form that polls for all windows as opposed to having each window with its own Timer?  I'm thinking there would be more to manage if I have the MDI form doing it all, but I'm worried about extra overhead or performance issues if each window maintains its own Timer.

Comments/suggestions?

Thanks.


mamacasc


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>