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,719
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,391)
- 02. How to: Matrix Numbers | Batch File(1,879)
- 03. How to Password Protect Files on Windows(850)
- 04. How to play Socom 2/3/ and Combined Assault on PC(6,618)
- 05. Modern Warfare 2 Vac Ban Bypass Tutorial(6,030)
- 06. How to embed an image on TheTechGame(3,051)
- 07. [PC] NIOH 2 OTHER USER SAVE RESIGN(12,929)
- 08. Host bot lobbies! Full Tutorial!(10,911)
- 09. Unban yourself [Plutonium BO2](14,200)
- 10. Fall Guys - How to Change Your Name Color on Fall Guys(8,366)
- 11. Best Crosshair Settings for Valorant(6,506)
- 12. Othercide The Surgeon Boss Guide(2,510)
- 13. Othercide Remembrances Unlock Guide(4,431)
- 14. Othercide Beginners Tips and Tricks(2,687)
- 15. How to Fix Grounded Crashes, Loading Time, Low FPS and Other(4,804)
"[VB.NET] How to Make a Counter Using a Label" :: Login/Create an Account :: 2 comments