Why cant i use static variables in events handling methods like this
private void redoToolStripMenuItem_Click(object sender, EventArgs e)
{
static int a=0;
rtbScript.Redo();
}
I am getting an error The modifier ‘static’ is not valid for this item
Can i know any solution to this problem.
Static variables are class members and belong to the class (their scope is the class)