How to make blink screen with vb.net - Printable Version +- Post4VPS Forum | Free VPS Provider (https://post4vps.com) +-- Forum: Geek World (https://post4vps.com/Forum-Geek-World) +--- Forum: Scripting & Programming (https://post4vps.com/Forum-Scripting-Programming) +--- Thread: How to make blink screen with vb.net (/Thread-How-to-make-blink-screen-with-vb-net) |
How to make blink screen with vb.net - humanpuff69 - 05-06-2017 WARNING! if you have epilepsy . just leave this thread NOW or you will get seizure
How to make Blink Screen with VB.net in this tutorial i will show you how to make an application that change color fast . it will make your application more attractive but it can make epilepsy people get seizure so use it carefully . i already warn the epilepsy people by giving warning above . so lets just start shall we
1.First . Make A New Project
Go To New Project And select "windows forms application" then name your project and press the "OK" button
2.Start by adding a timer
Now Add the timer . to add a timer just double click or drag the timer on the toolbox
3.Double Click The timer and add the code
Double click the timer and type the code below
Public Class Form1 Dim ColorX As Boolean = True Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick If ColorX = True Then Me.BackColor = Color.Red ColorX = False Else Me.BackColor = Color.Blue ColorX = True End If End Sub End Class PUT THE DIM ColorX OUTSIDE THE TIMER1_TICK OTHERWISE IT WOULDNT WORK! THE IMAGE IS INCORRECT!
You can change the color by changing the color.red and color.blue to any color that you want
4.Enable The timer and set the speed
set the enable to true and interval is depend on your liking . the less the interval the faster your application will blink
/!\ WARNING! faster speed or lower interval is equal more seizure so be careful with this /!\
5.Debug the app and enjoy the blink - WARNING! SPOILER CONATIN BLINKING IMAGE!
/!\ SPOILER CONTAIN BLINKING IMAGE /!\
Spoiler Expand You can download the project below
RAR PASSWORD is my username : humanpuff69 |