timer.enabled vs. timer.start()

  • Thread starter Thread starter Andreas Hohn
  • Start date Start date
A

Andreas Hohn

Hi,

what is the right way to start a timer?

timer.enabled = true

or

timer.start()?


Why are there two possibilities anyway?

Is .enabled the old VB6-way? and .Start() the new .NET-way?

Thankx for your help.

Greetings.

Andy
 
Hi,

what is the right way to start a timer?

timer.enabled = true

or

timer.start()?

Why are there two possibilities anyway?

Is .enabled the old VB6-way? and .Start() the new .NET-way?

Thankx for your help.

Greetings.

Andy

Hi,
Timer's "Enabled" property can be used to check whether it's running
and enabled in a if-else block, Start method starts ticking.
Furthermore, "Enabled=True" property can be used to start the timer
also in the same way like "Enabled=False" does the same as Timer's
"Stop" method.

Thanks,

Onur Güzel
 
Back
Top