Post: One last problem I ran into
10-02-2015, 01:40 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); I'm trying to make a check box so when it's checked it'll start Timer1 then if unchecked it'll stop timer1

My code I have that is giving me errors. Now first off I'm new to C# so please take it easy on me.

    
private void metroCheckBox1_CheckedChanged_1(object sender, EventArgs e)
{

if metroCheckBox1.CheckState = checked() then
{
timer1.Start();
}
else
{
timer1.Stop();
}
}


Another code I've tried
    
private void metroCheckBox1_CheckStateChanged(object sender, EventArgs e)
{

if metroCheckBox1.CheckState = checked() then
{
timer1.Start();
}
else
{
timer1.Stop();
}
}
(adsbygoogle = window.adsbygoogle || []).push({});
10-02-2015, 02:12 AM #2
Problem solved!


//close
10-02-2015, 05:02 AM #3
Adrian
Adrian is back!
Originally posted by Elitexboxer View Post
Problem solved!


//close


Good to see that you have been able to get the issue solved. If you have any other questions feel free to make another thread.

-Thread Closed.

The following user thanked Adrian for this useful post:

Elitexboxer

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo