I want to pause my application in specific precedure for couple of seconds but I dont want to use System.Threading.Thread.Sleep coz I want all buttons to work during pause. I was thinking about using Timer that counts down but have some problems with implementation i posted here:
http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=711772&SiteID=1&mode=1
I also thought I could use it in a separate thread but also have problems to do so coz the method is run via delegate. Sorry if someone will feels this thread is spam but I wanted to poste something more general and I open for sugestions how to do it.
I stuck with this porblem for 2 days now and realy have to move one the program. And maybe it sounds lame but plz help.

Pause Aplication
Ron2007
techlist
rguifarro
Finally a use Threading and as I had problems with setting new thread to event handler that use Invoke I was advice to move all SerialPort handling to separate class and initialize this class as a new Thread and for now it works like a dream. Just had to set some flags to communicate between threads.
Thx all for help.
Cheers
Aneo
John Oliver (UK)MSP, VSIP
Well you have pretty much run down the options available and left to pretty much nothing - how else do you expect to "pause" the application
you say you want to pause for a couple of seconds - but you dont want to use Thread.Sleep() and want to make the buttons still work - but a couple of seconds is nothing and most likely the user won't be "quickly" pressing any button any way.