Paul
Fri Jun 20 11:45:23 CDT 2008
What did you search on?! "thread periodic" gives great results...
Paul T.
"Armando Rocha" <armandorocha@ifthensoftware.com> wrote in message
news:38023134-F77F-4A84-A0A7-1EA8E795EF1C@microsoft.com...
> you are right, bui i try find information for this issues but i cant find,
> only after this i put my question to group.
>
> --
> Armando Rocha
> Mobile Developer
>
>
http://www.ifthensoftware.com
> PORTUGAL
> "Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
> com> escreveu na mensagem news:esZfnGv0IHA.5300@TK2MSFTNGP06.phx.gbl...
>>I don't mean you and I, personally. The archives of the group contain a
>>wealth of information, if you don't treat the group as a chat and,
>>instead, look to the archives *before* asking a question.
>>
>> Paul T.
>>
>> "Armando Rocha" <armandorocha@ifthensoftware.com> wrote in message
>> news:ea6bW$u0IHA.2208@TK2MSFTNGP04.phx.gbl...
>>> hi,
>>>
>>> No, i never put this discussionin this group.
>>>
>>> Thanks for the help Paul.
>>>
>>> --
>>> Armando Rocha
>>> Mobile Developer
>>>
>>>
http://www.ifthensoftware.com
>>> PORTUGAL
>>> "Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam
>>> DOT com> escreveu na mensagem
>>> news:ugcE26u0IHA.4220@TK2MSFTNGP02.phx.gbl...
>>>> Seems like we've had this discussion in this group before. Have you
>>>> checked the archives?
>>>>
>>>> The pattern goes something like this:
>>>>
>>>> -----
>>>>
>>>> // This event will be set when you want the thread to exit.
>>>> protected AutoResetEvent thev = new AutoResetEvent( false );
>>>>
>>>> startbutton_click()
>>>> {
>>>> th = new Thread( new ThreadStart( this.MyThread ) );
>>>> th.Start();
>>>> }
>>>>
>>>> protected virtual void AcqThread()
>>>> {
>>>> while (thev.WaitOne(time, false) == false)
>>>> {
>>>> }
>>>>
>>>> // The event was set. Time to exit the thread...
>>>> }
>>>>
>>>> stopbutton_click()
>>>> {
>>>> thev.Set();
>>>>
>>>> th.Join(waittime);
>>>> }
>>>>
>>>> -----
>>>>
>>>> Paul T.
>>>>
>>>> "Armando Rocha" <armandorocha@ifthensoftware.com> wrote in message
>>>> news:38439AF5-A90E-4D39-9877-011CCA196E7E@microsoft.com...
>>>>> Hi,
>>>>>
>>>>> I want a know if is possible launch a separeted thread that run with a
>>>>> interval of time like a Timer object (Timer.Tick).
>>>>>
>>>>> my goal is put to buttons (Start and Stop), when user click Start i
>>>>> want launch a thread that do something with a interval of 30 seconds
>>>>> at least, but user can work normaly, but when user click Stop i want
>>>>> also stop thread.
>>>>>
>>>>>
>>>>> --
>>>>> Armando Rocha
>>>>> Mobile Developer
>>>>>
>>>>>
http://www.ifthensoftware.com
>>>>> PORTUGAL
>>>>
>>>>
>>>
>>
>>
>