I included a timer control in my C# project, I got the following 2 events
1. Disposed
2. Tick
I included the timer class programatically in the same C# project and I got
the following events
1. Disposed
2. Elapsed

I am stumped..:-( whats going on here? I have framework 1.1 with VS.NET
2003

VJ

Re: Timer control vs Timer class by Chris

Chris
Sun Apr 18 11:45:12 CDT 2004

VJ, they are two different objects, the 1st is a Windows.Forms.Timer and the
latter is a System.Timers.Timer. There is also the System.Threading.Timer.

"VJ" <vijaybalki@yahoo.com> wrote in message
news:uMQj5qVJEHA.3264@tk2msftngp13.phx.gbl...
> I included a timer control in my C# project, I got the following 2 events
> 1. Disposed
> 2. Tick
> I included the timer class programatically in the same C# project and I
got
> the following events
> 1. Disposed
> 2. Elapsed
>
> I am stumped..:-( whats going on here? I have framework 1.1 with VS.NET
> 2003
>
> VJ
>
>



Re: Timer control vs Timer class by Mattias

Mattias
Sun Apr 18 11:55:23 CDT 2004


>I am stumped..:-( whats going on here? I have framework 1.1 with VS.NET
>2003

There are at least three Timer classes in the class library; one in
System.Threading, one in Systm.Timers (the one with the Elapsed event)
and one in System.Windows.Forms (the one with the Tick event).



Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.