Pausing the application

  • Thread starter Thread starter kotayya
  • Start date Start date
K

kotayya

I am trying to develop an application which needs to
execute particular every 30 seconds. How can I achieve
that. Please help.

Thank you

Kotayya
 
Hello,

kotayya said:
I am trying to develop an application which needs to
execute particular every 30 seconds. How can I achieve
that.

\\\
System.Threading.Thread.Sleep(180000)
///
 
Hi,
\\\
System.Threading.Thread.Sleep(180000)
///

Hmm if it is a GUI application and this is called inside the UI thread this
is going to be one really unresponsive application.
It can be used only to pouse a worker thread or with Console applications.

B\rgds
100
 
Hello,

100 said:
Hmm if it is a GUI application and this is called inside the
UI thread this is going to be one really unresponsive application.
It can be used only to pouse a worker thread or with Console
applications.

Feel free to post a solution.

;-)
 
Hi,
Real solution cannot be given unless we know more about the application.
I already gave my advice.
To make the application *console* type or isolate the working part in
designated worker thread and then use
System.Threading.Thread.Sleep(180000) as you said.
In my prevoius post my intention was to highlight some potential problems
not to say that the idea is not good.

B\rgds
100
..
 
I'd use a timer and simply set the enabled flags of the
controls you want disabled to false until the timer says
to go again.

Jeff
 
Back
Top