Using System.Windows.Forms.Timer.Start()/Stop() versus Enabled = true/false

As stated by both BFree and James, there is no difference in Start\Stop versus Enabled with regards to functionality. However, the decision on which to use should be based on context and your own coding style guidelines. It depends on how you want a reader of your code to interpret what you’ve written.

For example, if you want them to see what you’re doing as starting an operation and stopping that operation, you probably want to use Start/Stop. However, if you want to give the impression that you are enabling the accessibility or functionality of a feature then using Enabled and true/false is a more natural fit.

I don’t think a consensus is required on just using one or the other, you really have to decide based on the needs of your code and its maintenance.

Leave a Comment