Tutorials Navigation

Tutorials :: New :: Popular :: Top Rated

Tutorials: 18,357 Categories: 12

Total Tutorial Views: 42,404,385

[VB.NET] How to make flashing text

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

Category: PC Tutorials

Submitted By: Maj

Date Added:

Comments: 4

Views: 5,639

Related Forum: PC Building Forum

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

[ Register or Signin to view external links. ]


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
[ Register or Signin to view external links. ]


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

Ratings

Current rating: 8.33 by 6 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 :: 4 comments

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

hjim_hyPosted:

Very helpful! Thanks Maj.

TomPosted:

Mickers A simple but detailed tut, thanks Maj.


completely agree, great job maj

ZydrinPosted:

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

MickersPosted:

A simple but detailed tut, thanks Maj.