Tutorials Navigation

Tutorials: 12,368 Categories: 33
Total Views: 22,985,936

[VB.NET] How to make flashing text

Tutorial Name: [VB.NET] How to make flashing text  

Category: Programming Tutorials

Submitted By: Maj

Date Added:

Comments: 2

Views: 105

Share:


VB.Net does not have a flashing text feature built in. Which kinda sucks, as it can be made to add effect to certain text such as warnings and errors! So, here's how to do it




Step 1. Make a form with 1 Button, 2 Timers & 1 Label. Make the Label text whatever you want

Step 2. Set both timer intervals the same. The smaller the increment the faster it flashes. Personally I like to use 1000. It should look sometn



Step 3. Now add the code "Timer1.Start" to the button

Step 4. On the Timer1_Tick add the following code

Label1.Text  = "Whatever you set it too before"
Timer1.stop
Timer2.start


Step 5. Add the following code to Timer2

Label1.text = ""
Timer2.stop
Timer1.start


Its should now look something like below


All done! Now just debug your newly made application and test it out!

Ratings

Current rating: 9.5 by 2 users
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 make flashing text" :: Login/Create an Account :: 2 comments

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

KyloCruxPosted:

Might have to try this later! Thanks for sharing Maj! :D

MickersPosted:

A simple but detailed tut, thanks Maj.