Quiero hacer un boton que cuente las veces que se ha clickeado. Por ejemplo en el primer click quiero que me entregue un fragmento de texto a un textBox. Al segundo otro y asi sucesivamente (No mayor a 4 clicks) Este es el codigo de mi boton. Si alguien me puede ayudar lo agradezco de antemano.
private void button2_Click(object sender, EventArgs e)
{
int i = -1;
i++;
for (i = 0; i > 1; i++)
{
DError.Text = "The key is incorrect. You have 3 attempts left.";
DError.Visible = true;
}
for (i = 1; i > 2; i++)
{
DError.Text = "The key is incorrect. You have 2 attempts left.";
for (i = 2; i > 3; i++)
{
DError.Text = "The key is incorrect. You have 1 attempts left.";
for (i = 3; i > 4; i++)
{
DError.Text = "Pray to angels...";
DError.Visible = true;
}
}
}
}
for
? no se necesita ningun loop para lo que describes