View Single Post
Join Date: Jun 2008
Posts: 1
Reputation: vavatl is an unknown quantity at this point 
Solved Threads: 0
vavatl vavatl is offline Offline
Newbie Poster

Re: Window Timer in a new Thread

 
0
  #4
Jun 5th, 2008
Originally Posted by saurabh singh View Post
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.
Reply With Quote