Tutorials Navigation

Tutorials :: New :: Popular :: Top Rated

Tutorials: 18,357 Categories: 12

Total Tutorial Views: 42,422,696

[VB.NET] How to Count Time!

Tutorial Name: [VB.NET] How to Count Time!  

Category: PC Tutorials

Submitted By: Maj

Date Added:

Comments: 2

Views: 2,959

Related Forum: PC Building Forum

Share:

Ever wanted to make an app that counts the time passed when an action is performed? Well here's how you can do it!




Step 1. Make a new form and add 1 Button, 1 Label & 1 Timer (with an interval of 1000). It should look something like the below

[ Register or Signin to view external links. ]


Step 2. Double click the button and add the following code

Timer1.start


Step 3. Now double click the timer and add the code below

Label1.Text = Val(Label1.Text) + 1
Label1.Text = (Label1.Text + " (Seconds)")


Now, it should look something like shown below

[ Register or Signin to view external links. ]


Step 4. Debug & Test out your application!

[ Register or Signin to view external links. ]




How easy was that? Just like that you made an app that counts time!!

Ratings

Current rating: 10.00 by 1 user
Please take one second and rate this tutorial...

Not a Chance
1
2
3
4
5
6
7
8
9
10
Absolutely

Comments

"[VB.NET] How to Count Time!" :: Login/Create an Account :: 2 comments

If you would like to post a comment please signin to your account or register for an account.

HaloPosted:

Pretty nice guide you made here bro. Great work

ZydrinPosted:

This is pretty neat, not sure what I would use it for thought. Hmmm.