VB6 - Flashing Labels

All tutorials created in VB6 to be posted in here.
2 posts Page 1 of 1
Contributors
GoodGuy17
Coding God
Coding God
Posts: 1610
Joined: Mon Sep 07, 2009 12:25 am

VB6 - Flashing Labels
GoodGuy17
Hello!
If you want to make a flashing label, then you're in the right place! I have a tutorial for exactly that!
Of course, step by step is how I'm making this tutorial!
Read carefully:
1. Open VB6.
2. Select Standard Exe And Click Open.
3. Resize and rename the form to how you like it.
4. Add 1 Label, make it's caption what you want it to be!
5. Add 1 Timer, make it's interval how fast you want the label to flash(in milliseconds).
6. Double click the timer and type:
Code: Select all
If Label1.Visible = True Then
Label1.Visible = False
ElseIf Label1.Visible = False Then
Label1.Visible = True
End If
7. Press F5 and watch your label! It should be flashing!
~GoodGuy17~ :D
User avatar
Luzbelit0
Just Registered
Just Registered
Posts: 1
Joined: Mon Feb 28, 2011 5:16 pm

Re: VB6 - Flashing Labels
Luzbelit0
Hi GoodGuy17, I think you could replace the five lines of your code with this one:
Code: Select all
Label1.Visible = Not Label1.Visible
Try it ;)

Good Luck and See You Later
Luzbelit0
2 posts Page 1 of 1
Return to “VB6 Tutorials”