Here's an example of how to do this. You need a form with a timer. Set its interval to something suitable, say 500. When you minimize the window, its task bar icon will flash. When maximized, it won't. [tt]
Option Explicit
Private Declare Function FlashWindow Lib "user32" (ByVal hwnd As Long, ByVal bInvert As Long) As Long
Private Sub Form_Resize()
Timer1.Enabled = (Me.WindowState = vbMinimized)
End Sub
Private Sub Timer1_Timer()
FlashWindow Me.hwnd, True
End Sub [/tt]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.