Click here to Skip to main content
15,895,667 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
this is what the code looks like but doesn't work

C#
if (timer1.Start == timer1.Tick )
        {
label1.text = "im ticking";
        }
else
{
label1.text = "im not ticking";
}


so this is what i'm thinking, if timer1 is ticking when tell me its ticking if not don't tell me
Posted

Use the Enabled property for this.
 
Share this answer
 
Hi,

Try this:
C#
if (timer1.Enabled==true)
        {
label1.text = "im ticking";
        }
else
{
label1.text = "im not ticking";
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900