Window Timer in a new Thread
Please support our C# advertiser: DiscountASP.NET – 3 Months Free on C# Web Hosting
![]() |
•
•
Posts: 9
Reputation:
Solved Threads: 0
Thanks for reply,
[there is a form that has to be moved on the screen]-->[it is complete,with timer]
-->[timer moves it on the screen]-->[now its instance is to be created in some another form application, in a new thread (due to some reason)]-->[Now when this instance is called in the new form then it's timer's tick event doesn't work]
this is the scenario.
[there is a form that has to be moved on the screen]-->[it is complete,with timer]
-->[timer moves it on the screen]-->[now its instance is to be created in some another form application, in a new thread (due to some reason)]-->[Now when this instance is called in the new form then it's timer's tick event doesn't work]
this is the scenario.
•
•
Posts: 1
Reputation:
Solved Threads: 0
•
•
•
•
Hi ,
I want to create a System.Windows.Forms.Timer in a new Thread.
When I do this everything remains OK but the timer never goes inside
its tick event.I'm in deadlock condition. If anyone can give me some hint,
I shall be very thankful to him/her.
Regards-
Saurabh
It's probably too late but just for the sake of others who will come here from Google. It doesn't work because it adds events to a different queue than main application one and so events doesn't get dispatched. I guess (but never tried this myself) calling Application.DoEvents() in the thread where timer was started should cure the situation. Of course you would have to call it all the time, just one time wouldn't do it.
![]() |
Similar Threads
Other Threads in the C# Forum
- Problem in Timer (Java)
- Problem in Timer thread (Java)
- Tkinter Countdown Timer problems. (Python)
- Basketball timer help needed (Java)
- Timer, tickcount, ticks? (C#)
- winik, Please Help! (Viruses, Spyware and other Nasties)
- How would you do this? (Java)
- can't drag & drop in explorer + can't open link in new window (Windows NT / 2000 / XP / 2003)
- Is There Any Way To Remove The Volume Controls Icon From The Toolbar? (Windows NT / 2000 / XP / 2003)
Other Threads in the C# Forum
- Previous Thread: Setting Environment Variable using C#
- Next Thread: managing object in callback
•
•
•
•
Views: 3502 | Replies: 3 | Currently Viewing: 1 (0 members and 1 guests)





Linear Mode