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

Re: Pausing the application by Herfried

Herfried
Wed Sep 10 15:29:05 CDT 2003

Hello,

"kotayya" <kotayya@yahoo.com> schrieb:
> 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)
///

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet



Re: Pausing the application by 100

100
Wed Sep 10 16:05:14 CDT 2003

Hi,
> > 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)
> ///
>

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



Re: Pausing the application by Herfried

Herfried
Wed Sep 10 16:43:31 CDT 2003

Hello,

"100" <100@100.com> schrieb:
> 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.

;-)

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet



Re: Pausing the application by 100

100
Thu Sep 11 08:28:51 CDT 2003

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
.
"Herfried K. Wagner [MVP]" <hirf.nosp@m.activevb.de> wrote in message
news:eMFSSX%23dDHA.1836@TK2MSFTNGP09.phx.gbl...
> Hello,
>
> "100" <100@100.com> schrieb:
> > 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.
>
> ;-)
>
> --
> Herfried K. Wagner
> MVP · VB Classic, VB.NET
> http://www.mvps.org/dotnet
>
>



Re: Pausing the application by Jeffrey

Jeffrey
Thu Sep 11 14:10:49 CDT 2003

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

Jeff

>-----Original Message-----
>Hi,
>Real solution cannot be given unless we know more about=20
the application.
>I already gave my advice.
>To make the application *console* type or isolate the=20
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=20
potential problems
>not to say that the idea is not good.
>
>B\rgds
>100
>..
>"Herfried K. Wagner [MVP]" <hirf.nosp@m.activevb.de>=20
wrote in message
>news:eMFSSX%23dDHA.1836@TK2MSFTNGP09.phx.gbl...
>> Hello,
>>
>> "100" <100@100.com> schrieb:
>> > Hmm if it is a GUI application and this is called=20
inside the
>> > UI thread this is going to be one really=20
unresponsive application.
>> > It can be used only to pouse a worker thread or with=20
Console
>> > applications.
>>
>> Feel free to post a solution.
>>
>> ;-)
>>
>> --=20
>> Herfried K. Wagner
>> MVP =B7 VB Classic, VB.NET
>> http://www.mvps.org/dotnet
>>
>>
>
>
>.
>