Posts

Showing posts from March, 2012

How to make countdown timer in c#.net

Image
Hello friends, After a very very long time , lets grab some interesting stuff... ================================================== Today I'll show how to make a countdown timer in c#.net. ================================================== Step 1: first of all create a new project in c#.net (in visual studio)               FILE>NEW > PROJECT > c# PROJECTS Step 2 : Now we to set up a timer.                   We will make a downtimer here which'll count in decrement way.             Go to : Toolbars .             Under " All Windows Forms " select timer. Step 3 : Now a timer 1 will              appear at bottom of form. Step 4: Click on timer and go to properties pane            . set  Interval as 1000             This'll   set time interval of 1 second. Step 5: Now double click on timer              Write code :             if (tl > 0)             {                 tl = tl - 1;                 time.Text = tl + " seconds";