Tutorials Navigation
[VB.NET] How to Make a Counter Using a Label
Tutorial Name: [VB.NET] How to Make a Counter Using a Label
Category: PC Tutorials
Submitted By: Maj
Date Added:
Comments: 2
Views: 3,723
Related Forum: PC Building Forum
Share:
Ever wanted to make a timer display how many times the user has performed a certain action? Well here's how its done!
For this example I will be counting the number of times a button is clicked, however you can use anything! Such as timer ticks
Step 1. Make a new form with 2 labels and 1 button, like shown below
Step 2. Make note of the label name is for the value for me its Label 2
Step 3. Double click your button (or any other action) and insert the following code
It should look something like this
Step 4. Test out your application by debugging it!
Simple right? Just like that you can count how many times an action has been performed
For this example I will be counting the number of times a button is clicked, however you can use anything! Such as timer ticks
Step 1. Make a new form with 2 labels and 1 button, like shown below
Step 2. Make note of the label name is for the value for me its Label 2
Step 3. Double click your button (or any other action) and insert the following code
Label2.text = val(label2.text) + 1
It should look something like this
Step 4. Test out your application by debugging it!
Simple right? Just like that you can count how many times an action has been performed
Ratings
Comments
Related Tutorials
- 01. Emulating Xbox 360 on PC for Running COD4 With Mods(3,497)
- 02. How to: Matrix Numbers | Batch File(1,905)
- 03. How to Password Protect Files on Windows(857)
- 04. How to play Socom 2/3/ and Combined Assault on PC(6,725)
- 05. Modern Warfare 2 Vac Ban Bypass Tutorial(6,138)
- 06. How to embed an image on TheTechGame(3,100)
- 07. [PC] NIOH 2 OTHER USER SAVE RESIGN(12,984)
- 08. Host bot lobbies! Full Tutorial!(11,269)
- 09. Unban yourself [Plutonium BO2](14,242)
- 10. Fall Guys - How to Change Your Name Color on Fall Guys(8,387)
- 11. Best Crosshair Settings for Valorant(6,529)
- 12. Othercide The Surgeon Boss Guide(2,544)
- 13. Othercide Remembrances Unlock Guide(4,467)
- 14. Othercide Beginners Tips and Tricks(2,711)
- 15. How to Fix Grounded Crashes, Loading Time, Low FPS and Other(4,847)
"[VB.NET] How to Make a Counter Using a Label" :: Login/Create an Account :: 2 comments