Re: Threading Timer_Elapsed
From: Jay B. Harlow [MVP - Outlook] (Jay_Harlow_MVP_at_msn.com)
Date: 11/29/04
- Next message: Jeff Dillon: "Re: Why is running in the IDE so slow"
- Previous message: Just Me: "Re: Why is running in the IDE so slow"
- In reply to: NewUser: "Threading Timer_Elapsed"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 29 Nov 2004 15:33:11 -0600
NewUser,
In addition to the other comments (especially Tom's about the
SynchronizingObject property).
The following article in MSDN Magazine explains the difference between the
three timer objects in .NET & when to use each.
http://msdn.microsoft.com/msdnmag/issues/04/02/TimersinNET/default.aspx
The above article also discusses if & how each timer interacts with
threading.
Hope this helps
Jay
"NewUser" <NewUser@discussions.microsoft.com> wrote in message
news:FF1A7650-1334-489C-9C6F-4B3AF134C21A@microsoft.com...
> Hello,
>
> I'm a new user to Visual Basic.net and I would appreciate any help
> regarding
> a problem I have. I have searched the posts in this newsgroup and the VB
> library for threading topics, but I get confused with the code that is
> displayed. Anyway, I have a System.Timers.Timer object in a form and its
> interval is 50 ms. I want to create a thread around the Timer_Elapsed
> event
> (ie. myThread = new System.Threading.Thread(AddressOf Timer_Elapsed)) but
> the signature doesn't match the delegate. Could someone please tell me
> how
> to create a thread around this event? I did look up Threaded Timers but I
> got even more confused with the code. Thanks in advance.
- Next message: Jeff Dillon: "Re: Why is running in the IDE so slow"
- Previous message: Just Me: "Re: Why is running in the IDE so slow"
- In reply to: NewUser: "Threading Timer_Elapsed"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|