Results 1 to 4 of 4
  1. #1
    XGelite's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    Enter text here
    Posts
    1,344
    Reputation
    12
    Thanks
    276

    How to make flashing/blinking text.

    ok well this prolly isnt very useful, but its nice to know.

    ok what you need is:

    a timer
    a form
    a label

    what to do:

    make a windows form and put a label anywhere and put whatever text you like and whatever color you like.

    drag a Timer onto you form.Then double click the Timer1 and under the tick even put:
    Code:
    Timer1.Interval = (1000)  //1 second 
    Me.Label1.Visible = Not Me.Label1.Visible
    now create a form load event like this:
    Code:
    Private Sub Main_Frm_Load(ByVal sender As System.Object, ByVal _
            e As System.EventArgs) Handles MyBase.Load
    change Main_Frm_Load to whatever the name of you form is ( proll form1 so change it to Form1_Load) ( Main_Frm is the name of my form.)

    now under the load event put in:
    Code:
    Timer1.enabled = True
    now if you want the texts to blink after pushing a button

    under the form load event change from Timer1.enabled = True to Timer1.enabled = False -like this:

    Code:
    Private Sub Main_Frm_Load(ByVal sender As System.Object, ByVal _
            e As System.EventArgs) Handles MyBase.Load
    
    Timer1.enabled = False
    
    end sub

    then add a button to your windows form and double click it.
    Under the button click event put:

    Code:
    Timer1.enabled = True
    and there you go! you should now be able to code a blinking/Flashing text in VB!! Hope i helped

    btw i did this in vb2008 and vb2010

  2. #2
    Zoom's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Your going on my 24/7 DDoS hit list.
    Posts
    8,552
    Reputation
    127
    Thanks
    5,970
    My Mood
    Happy
    Pretty simple but very good your the beginners!

    I think this is easier!

    Add 2timers
    1 label

    Add this to form load!
    Code:
    Timer1.interval = 100
    timer2.interval = 200
    timer1.enabled = true
    timer2.enabled = true
    Add this code to timer1:

    Code:
    label1.hide()

    add this code to timer2:
    Code:
    label1.show()
    Last edited by Zoom; 11-09-2009 at 04:04 PM.
    -Rest in peace leechers-

    Your PM box is 100% full.

  3. #3
    MrEncrypted's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    201
    Reputation
    10
    Thanks
    28
    My Mood
    Amused
    Nice, thanks for the Info. Comes in handy for people like ME in the process of Learning programming.

    Much Thanks

  4. #4
    Threadstarter
    Synthetic Hacker
    XGelite's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    Enter text here
    Posts
    1,344
    Reputation
    12
    Thanks
    276
    Quote Originally Posted by hejsan1 View Post
    Pretty simple but very good your the beginners!

    I think this is easier!

    Add 2timers
    1 label

    Add this to form load!
    Code:
    Timer1.interval = 100
    timer2.interval = 200
    timer1.enabled = true
    timer2.enabled = true
    Add this code to timer1:

    Code:
    label1.hide()

    add this code to timer2:
    Code:
    label1.show()
    that's really not that much easier lol same basic thing....but i guess the Me.Label1.Visible = Not Me.Label1.Visible


    would be a lil harder to remember for the beginners.
    Last edited by XGelite; 11-10-2009 at 07:48 PM.

Similar Threads

  1. How to make a simple text based game in c++
    By VvITylerIvV in forum Programming Tutorials
    Replies: 13
    Last Post: 08-09-2010, 05:49 PM
  2. How To Make A Text To Speech
    By gunnybunny in forum Visual Basic Programming
    Replies: 1
    Last Post: 08-24-2009, 08:57 AM
  3. How to make Lobby Red Text?
    By bomber18 in forum Combat Arms Hacks & Cheats
    Replies: 28
    Last Post: 07-08-2009, 11:37 PM
  4. [tut]How To Make A Flash Trainer[tut]
    By Slippy77 in forum Programming Tutorials
    Replies: 4
    Last Post: 12-31-2008, 01:33 PM
  5. how to make a text over a few lines ?
    By bohnenbong in forum WarRock - International Hacks
    Replies: 10
    Last Post: 11-09-2007, 10:51 AM

Tags for this Thread