Results 1 to 4 of 4

Thread: Creating Flashing Labels

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Nov 1999
    Location
    Houston, TX - USA
    Posts
    21

    Post

    Does anybody has an idea about how to create a label which flashes (visible/not visible) at the frequency defined by the Timer?

    Most of the code I wrote using For...Next or Do...Loop ends up hanging (looping either on visible or invisible.

    Any help would be appreciated

    ------------------
    Paul Stermann
    DSI-Houston

  2. #2
    Hyperactive Member
    Join Date
    Sep 1999
    Posts
    305

    Post

    Here you go. Set the timer to however fast you want and put this code in

    Private Sub Timer1_Timer()
    If Label1.Visible = False Then
    Label1.Visible = True
    Else
    Label1.Visible = False
    End If
    End Sub

  3. #3
    Lively Member Bios's Avatar
    Join Date
    Nov 1999
    Location
    Richton Park, IL, USA
    Posts
    71

    Post

    how about an easier code...

    Private Sub Timer1_Timer()
    Label1.visible = not Label1.visible
    End Sub

    yup...thats it...

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Nov 1999
    Location
    Houston, TX - USA
    Posts
    21

    Post

    Thank you guys!

    ------------------
    Paul Stermann
    DSI-Houston

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width