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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top