Hi i have stepped into some problem related to timer. hope somebody can help..
System.Windows.Forms.Timer works in a single-threaded application.
Check this link:
Remarks says:
A Timer is used to raise an event at user-defined intervals. This Windows timer is designed for a single-threaded environment where UI threads are used to perform processing. It requires that the user code have a UI message pump available and always operate from the same thread, or marshal the call onto another thread.
Read more "Remarks" section and you'll find that Microsoft recommends that you use this timer synchronizing it with the UI thread.