Mehul Prajapati
Timer.Enabled VS. Timer.Start()/Stop() in c#.net ?
By Mehul Prajapati in C# on Feb 01 2018
  • Bharathi Raja
    Mar, 2018 1

    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.

    • 1
  • Uttam Chaturvedi
    Feb, 2018 22

    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();orobjTimer.Enabled = false; objTimer.Enabled = true;

    • 1
  • Ayappan Alagesan
    Feb, 2018 6

    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

    • 1


Most Popular Job Functions


MOST LIKED QUESTIONS