View Full Version : [c#]Cronometro nella form
Ciao ho bisogno d'aiuto:help: vorrei mettere un label in una Form che effettua un conto alla rovescia
tnx
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
vBulletin® v3.6.4, Copyright ©2000-2025, Jelsoft Enterprises Ltd.