Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Timers!!!
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Timers!!!
Divers
Thread ID:
00943610
Message ID:
00943610
Vues:
59
I have added a timer to one of my forms.
I want the timer to count down in seconds

I have the following code in my form :

Where is the time elapsed?
And is this the right code to get the timer to start?
Interval is 15,000 to equal 15 seconds.
this.tmrSQLConnection.Enabled = true;			           
this.tmrSQLConnection.Start();
	lResult = MyTestValues.TestServer(this.txtSQLUserID.Text.Trim(),this.txtSQLPassword.Text.Trim(),this.txtServerName.Text.Trim());
this.tmrSQLConnection.Stop();
this.tmrSQLConnection.Enabled = false;


		private void tmrSQLConnection_Tick(object sender, System.EventArgs e)
		{
			int TimeValue = 0;
			TimeValue = (this.tmrSQLConnection.Interval/1000);
			this.lblStatus.Text = "Time Remaining (" + TimeValue.ToString() + ")";
			this.lblStatus.Update();
		}
Shawn Dorion
Geo Sektor Dot Com
Website: http://www.geosektor.com

Web Hosting Plans
Visit : http://WebHosting.Applications4u.com/
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform