Code of stop watch in VB.net

Asked By 300 points N/A Posted on -
qa-featured

Give me any one code of stop watch in vb.net?

SHARE
Best Answer by Mr.Solution
Best Answer
Best Answer
Answered By 0 points N/A #89191

Code of stop watch in VB.net

qa-featured

Hi

Using vb.net you can create a stop watch. first of all, insert a timer control in the form; then enable it to start the time in a text box and disable while you want to stop.

Answered By 300 points N/A #89192

Code of stop watch in VB.net

qa-featured

Can you give the code that you implemented?

Answered By 0 points N/A #89194

Code of stop watch in VB.net

qa-featured

Here is the code for inserting a stop watch:

Private Sub btnstart_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnstart.Click, Timer1.Tick
timebox.Text = DateTime.Now.ToString("hh/mm/ss")
Timer1.Enabled = True

End Sub

Answered By 0 points N/A #89196

Code of stop watch in VB.net

qa-featured

The timer can be stopped using this code:

Private Sub Button2_Click(ByVal sender As System. Object, ByVal e As System.EventArgs) Handles Button2.

Click

Timer1.Enabled = False

End Sub

Answered By 300 points N/A #89197

Code of stop watch in VB.net

qa-featured

Good work from you guys,

Thanks

Answered By 0 points N/A #89198

Code of stop watch in VB.net

qa-featured

Well, it's my pleasure.

Login/Register to Answer

Related Questions