Results 1 to 12 of 12

Thread: taskbar

  1. #1

    Thread Starter
    Addicted Member smh's Avatar
    Join Date
    Oct 2000
    Location
    South Dakota, USA
    Posts
    249
    How can you make a program's button in the taskbar blink? (As a warning message)
    Normal is boring...

    smh

  2. #2
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Kovan probably beat me to this but....

    in mod:
    Code:
    Public Declare Function FlashWindow _
    Lib "user32" (ByVal hwnd As Long, _
    ByVal bInvert As Long) As Long
    in a timer...(about 500 or so for the interval)

    Code:
    a& = FlashWindow(Me.hwnd, 1)


    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  3. #3

    Thread Starter
    Addicted Member smh's Avatar
    Join Date
    Oct 2000
    Location
    South Dakota, USA
    Posts
    249
    I tried your example, and I am getting the following error:

    Compile error:
    Wrong number of arguements or invalid property assignment.

    Normal is boring...

    smh

  4. #4

    Thread Starter
    Addicted Member smh's Avatar
    Join Date
    Oct 2000
    Location
    South Dakota, USA
    Posts
    249

    Oops

    OK, so I can't read (or spell for that matter). My mind is not here today. Sorry....
    Normal is boring...

    smh

  5. #5

    Thread Starter
    Addicted Member smh's Avatar
    Join Date
    Oct 2000
    Location
    South Dakota, USA
    Posts
    249
    Ok, so I am not getting any errors now, but how can I change the color of the button to another color, such as red?
    Normal is boring...

    smh

  6. #6
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Wink Windows...

    I believe that has to do with the windows color settings...
    it should be pulling the active titlebar color...I think

    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  7. #7

    Thread Starter
    Addicted Member smh's Avatar
    Join Date
    Oct 2000
    Location
    South Dakota, USA
    Posts
    249
    Correct me if I'm wrong, but the smaller the number ... the faster the button should flash, right? I have changed the number from 1 to 25 to 500, and it always seems to flash at the same rate...about once a minute. Any suggestions...I want it to flash faster.
    Normal is boring...

    smh

  8. #8
    Guest
    (Change Public to Private)
    Try this:


    Code:
    Private Declare Function FlashWindow Lib "user32" _
    (ByVal hWnd As Long, ByVal bInvert As Long) As Long
    
    'True = Flash
    'False = No Flash
    
    Private Sub Timer1_Timer()
         FlashWindow Form1.hWnd, True
    End Sub

  9. #9

    Thread Starter
    Addicted Member smh's Avatar
    Join Date
    Oct 2000
    Location
    South Dakota, USA
    Posts
    249
    Still turns on for a minute, turns off for a minute.
    Normal is boring...

    smh

  10. #10
    Guest
    smh, 1 is the fastest you will get with a timer.
    Perhaps, a Do...Loop will satisfy your needs?

    Code:
    Private Sub Command1_Click()
    Do
    FlashWindow Form1.hWnd, True
    DoEvents
    Loop
    End Sub

  11. #11

    Thread Starter
    Addicted Member smh's Avatar
    Join Date
    Oct 2000
    Location
    South Dakota, USA
    Posts
    249
    Thanks
    Normal is boring...

    smh

  12. #12
    Hyperactive Member Krass's Avatar
    Join Date
    Aug 2000
    Location
    Montreal
    Posts
    489
    I tried this function. It doesn't work the way I want it to work. This code will make the caption bar of the current form blink.

    What I want is the button of the entire application, on Windows' taskbar at the bottom, to flash. How can this be done?

    Thanks
    Chris

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