Results 1 to 5 of 5
  1. #1
    darkshadowz's Avatar
    Join Date
    Dec 2013
    Gender
    male
    Posts
    7
    Reputation
    10
    Thanks
    0

    Simple Code To Make A Blink Text [WITH PICTS!] [4 Newbie Only! :p]

    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/
    Attached Thumbnails Attached Thumbnails
    1.JPG  

    2.JPG  

    3.JPG  

    1.JPG  

    4.JPG  

    5.JPG  

    2.JPG  

    6.JPG  

    7.JPG  

    8.JPG  

    <b>Downloadable Files</b> Downloadable Files
    Last edited by Hero; 12-19-2013 at 07:48 PM.

  2. #2
    Biesi's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Posts
    4,993
    Reputation
    374
    Thanks
    8,808
    My Mood
    Twisted
    Make the alpha in ARGB always 255.. not random

  3. #3
    Hero's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Location
    memes
    Posts
    40,134
    Reputation
    4764
    Thanks
    9,674
    Remember to add virus scans. Approved.
    [] [] [] [][]

    Editor from 06•14•2011 • 2014
    Donator since 09•16•2011
    Minion from 10•10•2011 • 01•06•2011
    Minion+ from 01•06•2012 • 08•08•2012
    Moderator from 08•08•2012 • 10•06•2012
    Global Moderator from 10•06•2012 • 12•05•2017
    Staff Administrator from 12•05•2017 • 05•01•2019
    Trusted Member since 07•13•2019
    Global Moderator since 09•11•2020




  4. #4
    darkshadowz's Avatar
    Join Date
    Dec 2013
    Gender
    male
    Posts
    7
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by Hero View Post
    Remember to add virus scans. Approved.
    sorry, I'm a new member in MPGH. But it says that i'm not allowed to post links.

  5. #5
    hkKenshin's Avatar
    Join Date
    Oct 2013
    Gender
    male
    Posts
    301
    Reputation
    28
    Thanks
    340
    Not really that sure about VB but I'm sure you can use a bitwise shift then an AND operator for a tick count to control the speed too.

Similar Threads

  1. [Solved] Making injector source codes and making a loader with injector
    By -MAJ in forum Visual Basic Programming
    Replies: 2
    Last Post: 08-18-2012, 05:37 PM
  2. [Tutorial] How to make a Blinking text by Syahmie
    By Mohd Syahmie in forum Visual Basic Programming
    Replies: 1
    Last Post: 01-22-2012, 11:08 PM
  3. How to make flashing/blinking text.
    By XGelite in forum Visual Basic Programming
    Replies: 3
    Last Post: 11-10-2009, 07:46 PM
  4. Got banned today with zeas modul, and a simple code
    By mojo007 in forum Visual Basic Programming
    Replies: 10
    Last Post: 04-12-2008, 05:50 AM
  5. Replies: 4
    Last Post: 06-06-2006, 10:16 PM