Interviews3 answers
Timer.Enabled VS. Timer.Start()/Stop() in c#.net ?
3 Answers
timer.Stop() and timer.Start(), because they are subs of timer.Enabled. If you want to set the timer to false at the beginning of the application (at loading) , you must used timer.Enabled = false, timer.Stop() won't work. This is why I use timer.Enabled = false/true.
Bharathi RajaPosted Mar 1, 2018, 1:53 AM EST
There is no such difference. You can use both, however it depends on the context which one you need to use as per your choice.
objTimer.Stop();
objTimer.Start();
or
objTimer.Enabled = false;
objTimer.Enabled = true;
Uttam ChaturvediPosted Feb 22, 2018, 6:53 AM EST
Timer.Enable is to access the Timer
Start and stop is to start or stop the timer
if timer is not enabled we cannot start/stop the timer
Ayappan AlagesanPosted Feb 6, 2018, 12:56 AM EST



