Hi

How can I use a timer in a module such that I can start the timer and then
trap when timer has reached the interval?

Many Thanks

Regards

Re: Timer in module by JDS

JDS
Mon Jul 14 03:14:10 CDT 2008

On Jul 14, 2:41=A0am, "John" <i...@nospam.infovis.co.uk> wrote:
> Hi
>
> How can I use a timer in a module such that I can start the timer and the=
n
> trap when timer has reached the interval?
>
> Many Thanks
>
> Regards

Try this:

http://msdn.microsoft.com/en-us/library/system.windows.forms.timer(VS.80).a=
spx

HTH

Re: Timer in module by Dick

Dick
Mon Jul 14 11:34:57 CDT 2008

Or, you can use System.Threading.Timers or System.Timers.Timer.

--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
See www.hardandsoftware.net for details and contact information.



Re: Timer in module by John

John
Mon Jul 14 12:21:44 CDT 2008

What is the difference between the three?

Thanks

Regards

"Dick Grier" <dick_grierNOSPAM@.msn.com> wrote in message
news:OySJB%23c5IHA.1952@TK2MSFTNGP03.phx.gbl...
> Or, you can use System.Threading.Timers or System.Timers.Timer.
>
> --
> Richard Grier, MVP
> Hard & Software
> Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
> Edition,
> ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
> 2006.
> See www.hardandsoftware.net for details and contact information.
>



Re: Timer in module by kimiraikkonen

kimiraikkonen
Mon Jul 14 14:17:06 CDT 2008

On Jul 14, 8:21=A0pm, "John" <i...@nospam.infovis.co.uk> wrote:
> What is the difference between the three?
>
> Thanks
>
> Regards
>
> "Dick Grier" <dick_grierNOSPAM@.msn.com> wrote in message
>
> news:OySJB%23c5IHA.1952@TK2MSFTNGP03.phx.gbl...
>
>
>
> > Or, you can use System.Threading.Timers or System.Timers.Timer.
>
> > --
> > Richard Grier, MVP
> > Hard & Software
> > Author of Visual Basic Programmer's Guide to Serial Communications, Fou=
rth
> > Edition,
> > ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised Mar=
ch
> > 2006.
> > Seewww.hardandsoftware.netfor details and contact information.- Hide qu=
oted text -
>
> - Show quoted text -

The first Google return that would meet your need:

http://crawlmsdn.microsoft.com/en-us/magazine/cc164015.aspx

Thanks,

Onur G=FCzel