What's the difference between the timer in 'Components' toolbox and the other timer in 'Window Forms' ?
Printable View
What's the difference between the timer in 'Components' toolbox and the other timer in 'Window Forms' ?
as far as i'm aware nothing, basically most of the other controls in the toolbox ( if not all of them ) are also available under 'Window Forms'
Well , I was reading about "creating windows service" , it requires to add a timer from 'Components' section , not from 'Windows Forms' . It doesn't explain why I should use that over the other one . So , there must be a difference I don't know .
BTW, Components Timer has two more properties : a"AutoReset" and "SynchronizingObject" , Windows Forms' doesn't have these . So this is the first difference I see . Any other ones ?
The timer component is optimized for use in Windows Forms applications and must be used in a window, where as the timer in the System.Timers namespace can be used anywhere.
Thanks all .