I am trying to create a service application using VB.NET (VS 2005) and I need
to use the "system.timers.timer" class. However when I drag the timer from
the toolbox from either components or windows forms I end up with the
"system.windows.forms.timer". I read that the one in the components area was
supposed to be the "system.timers.timer" not the "system.windows.forms.timer".
Has anyone else noticed this?
Chris - 07 Feb 2006 20:57 GMT
Yes! This was driving me crazy. Turns out if you look in the VS menu under Tools, there's an option "Choose Toolbox Items". Scroll down to Timer and you'll see that System.Timers.Timer is unchecked. If you check it, it will replace the forms timer under the commoncontrols tab. I find I have to drag and drop a timer to figure out which one it'll turn out to be.