stopwatch
I want project code for stopwatch...any good example plz
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Hiren SoniPosted Jan 30, 2010, 11:49 PM
public partial class Form1 : Form
{
Stopwatch s;
Timer t1;
public Form1()
{
t1 = new Timer(); ;
s = new Stopwatch();
t1.Tick += new EventHandler(tick);
InitializeComponent();
s.Reset();
t1.Start();
}
private void button1_Click(object sender, EventArgs e)
{
s.Stop();
}
public void tick(object sender, EventArgs e)
{
textBox1.Text = s.Elapsed.ToString();
}
private void button2_Click(object sender, EventArgs e)
{
s.Reset();
listBox1.Items.Clear();
}
private void button3_Click(object sender, EventArgs e)
{
s.Start();
}
private void button4_Click(object sender, EventArgs e)
{
listBox1.Items.Add(s.Elapsed.ToString());
}
}
paul danielPosted Feb 2, 2010, 1:38 AM
http://dotnetperls.com/stopwatch
Hiren SoniPosted Jan 31, 2010, 12:09 AM
reset and start mthod of stopwatch ..into the interval's button clik.
dont forget to accept answer
Lalit MPosted Jan 30, 2010, 12:07 AM
In JavaScript
-------------
http://www.java-scripts.net/javascripts/Stop-Watch-Script.phtml
In VB.NET
-------------
http://www.devasp.net/net/articles/display/335.html
http://www.mentalis.org/soft/class.qpx?id=8
http://www.experts-exchange.com/Programming/Languages/.NET/Q_20468088.html
In C#
------
http://www.c-sharpcorner.com/UploadFile/aaghany/StopWatchUsingCsharp11122005051620AM/StopWatchUsingCsharp.aspx
http://www.dotnetspider.com/resources/30931-Stopwatch.aspx