[Solved] Method Calling with Time of 2 Seconds


Based on your response in comments, I think you want your timer event handler to be something like this:

// Declared at class scope
private int whichMethod = 1;

private void timer1_Tick(object sender, EventArgs e)
{
    if (whichMethod == 1)
    {
        method1();
        whichMethod = 2;
    }
    else
    {
        method2();
        whichMethod = 1;
    }
}

That just alternates which method is called at each tick, which should fill the requirements that you stated in your comment.

0

solved Method Calling with Time of 2 Seconds