Results 1 to 3 of 3

Thread: making an icon flash in the system tray

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2000
    Location
    UK
    Posts
    66
    I have a VB6 app that uses an icon in the system tray - is there a way to make the icon flash??

    Cheers

    Simon

  2. #2
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    I'm taking a guess here but what if you do something like:
    place a timer and when the timer interval is reached, have the form1.icon ="" then in a second when the timer interval is reached again have the form1.icon = app.path & "icon.ico"
    and so on. I don't think this is the best method but iy *should* work.

    Gl,
    D!m
    Dim

  3. #3
    New Member
    Join Date
    Jul 2000
    Posts
    11
    Follow these steps:

    1. Put two imageboxes on form1
    2. name them icon1 and icon2
    3. load the two icons to the imageboxes
    4. add a timer and set the interval(1000?)
    5. add this code

    Public which As Boolean
    Private Sub Timer1_Timer()
    Select Case which
    Case True
    Form1.Icon = icon1.Picture
    which = False
    Case False
    Form1.Icon = icon2.Picture
    which = True
    End Select
    End Sub
    "64K should be enough"

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