Hi All
I am building a WinForms application reading from a socket data and charting lines.
I am using System.Windows.Forms.Timer
to trigger each second the event that
- gets data from a queue filled by a socket
- redraws lines on the chart
My Question is about the Timer object: I have one Timer object for each WinForm having a chart to redraws; so suppose I have 20 chart, I will have 20 forms with a total of 20 Timers.
Is this a good approach? I decided this based on the following(please correct me if I am wrong )
Forms.Timer
instance doesn't create a Thread on my application, but just triggers the event on receiving a WM_TIMER event from the message pump of the Form.- it lives in the same thread of the GUI so I can directly access each element of my forms without worrying too much.
Are too much timers a good approach or could I have drawback? Thanks AFG