PDA

View Full Version : [c#]Cronometro nella form


ohi
14-10-2009, 12:26
Ciao ho bisogno d'aiuto:help: vorrei mettere un label in una Form che effettua un conto alla rovescia
tnx

MarcoGG
14-10-2009, 14:59
private int boom = 10;
private void timer1_Tick(object sender, EventArgs e)
{
label1.Text = boom.ToString();
if (boom == 0)
{
label1.Text = "BOOOOMMM !!!";
timer1.Enabled = false;
}
else
{
boom -= 1;
}
}

:D

ohi
14-10-2009, 16:04
Grazie mille