How to make labels/text blink!

Heres your chance to share your own tutorials with the community. Just post them on here. If your lucky they may even be posted on the main site.
8 posts Page 1 of 1
Contributors
User avatar
Proprogrammer
VIP - Donator
VIP - Donator
Posts: 415
Joined: Sun Oct 03, 2010 11:14 pm

this is very simple and i am pretty sure you can figure out the code yourself.

First make a timer then, put this code in the timer, remember you need to have a label/text.
change the timer to what ever interval.
Code: Select all
Dim IHATE As New Random()
  Dim R As Integer = IHATE.Next(0, 255)
  Dim G As Integer = IHATE.Next(0, 255)
  Dim B As Integer = IHATE.Next(0, 255)
  Label1.ForeColor = Color.FromArgb(R, G, B)

of course you can change the colors.
------------------------------------------------------------------------------
Proprogrammer, not just a Programmer.
User avatar
Usman55
VIP - Site Partner
VIP - Site Partner
Posts: 2821
Joined: Thu Dec 24, 2009 7:52 pm

Re: How to make labels/text blink!
Usman55
This is a nice snippet, I used it two days before to help kolega in his application. I saw it on youtube, and if you took it from somewhere then please give credits.
Image
User avatar
Proprogrammer
VIP - Donator
VIP - Donator
Posts: 415
Joined: Sun Oct 03, 2010 11:14 pm

In my old book of snippets i had since i started coding. So i dont remember where i got it from.
------------------------------------------------------------------------------
Proprogrammer, not just a Programmer.
User avatar
Usman55
VIP - Site Partner
VIP - Site Partner
Posts: 2821
Joined: Thu Dec 24, 2009 7:52 pm

Re: How to make labels/text blink!
Usman55
A suggestions is that this can also be used with form's backcolour or almost any other thing which has a forecolor or a backcolor.
Image
User avatar
Zulf
Serious Programmer
Serious Programmer
Posts: 441
Joined: Fri Jun 11, 2010 7:46 am

Re: How to make labels/text blink!
Zulf
Might wanna put an epileptic warning on application.
Image
User avatar
Proprogrammer
VIP - Donator
VIP - Donator
Posts: 415
Joined: Sun Oct 03, 2010 11:14 pm

thanks, lol.
------------------------------------------------------------------------------
Proprogrammer, not just a Programmer.
User avatar
Axel
Coding God
Coding God
Posts: 1928
Joined: Sun Jun 27, 2010 9:15 pm

Re: How to make labels/text blink!
Axel
You should make an algorithm of it so you can let the colors flow into eachother :P
http://vagex.com/?ref=25000
User avatar
MrAksel
C# Coder
C# Coder
Posts: 1758
Joined: Fri Mar 26, 2010 12:27 pm

Re: How to make labels/text blink!
MrAksel
You can use WPF for some smooth color animations!
Great snippet for everyone
LMAOSHMSFOAIDMT
Laughing my a** of so hard my sombrero fell off and I dropped my taco lmao;


Over 30 projects with source code!
Please give reputation to helpful members!

Image
Image
8 posts Page 1 of 1
Return to “Tutorials”