Hello MPGH ! I'm a new member in MPGH. Here I want to share a simplest code to make blink text. Let's check it out.
Tools :
-Computer with windows OS
-Keyboard and mouse
-Visual basic 2010 or higher installed
Steps :
#1 Open your VB create a new WindowsFormsApplication, give a name then click Ok.
#2 Make 1 Label, 1 Timer, and 2 Button. See the setting below.
#3 Setting Timer Interval.
Keep Enabled setting as False.
Here I put interval : 100, you can change the interval value how much you want, more high interval, more slow text blinking, more low
interval, more fast text blinking.
#4 This time to coding
#A Double click Timer1 and put code below :
Code:
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Dim rand As New Random
Label1.ForeColor = Color.FromArgb(rand.Next(0, 255), rand.Next(0, 255), rand.Next(0, 255), rand.Next(0, 255))
End Sub
#B Double click Button1 and put code below :
Code:
Timer1.Start() 'this code to starts blink text whenever you click Button1
Label1.Text = "Click Stop Blink To Stop Blink Text" 'change the Label1 text whenever you click Button1
#C Double click Button2 and put code below
Code:
Timer1.Stop() ' this code for stops blink text whenever you click Button2
Label1.Text = "Click Start Blink To Blink Text" 'change the Label1 text whenever you click Button2
Label1.ForeColor = Color.Black 'Change the Label1 text to black color whenever you click Button2
ALL COMPLETED CODES
#5 Well ! Coding session done! Now press F5 on your keyboard to start debugging
#A First Startup
#B When I click Button1
#C When I click Button2. It's back to normal.
Well ! Now you can merge this code to your project. Hope it helps you guys. Please PM me if you got error.
Thank You All MPGH Members !
https://www.virustotal.com/en/file/c...is/1387508236/