Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asptoday_discuss thread: blinking taskbar


Message #1 by "Espen Hoff" <post@e...> on Sun, 28 Oct 2001 15:03:23
Hello everyone!



Do any of you know how to make the taskbar icon/window blink when it is 

minimized and when an event occurs?

You do? Great!

Please post an answer for me.

Thank you.



Regards

Espen Hoff
Message #2 by "Daron Flatt" <dflatt@i...> on Sun, 28 Oct 2001 10:00:54 -0600
try this:



Declare Function FlashWindow Lib "user32.dll" (ByVal hwnd As Long, ByVal

bInvert As Long) As Long





' Flash Form1 five times to get the user's attention

Dim c As Integer, retval As Long  ' counter variable & return value



For c = 1 To 10  ' flash on five times, off five times

  retval = FlashWindow(Form1.hWnd, 1)  ' toggle the look of the window

  Sleep 500  ' halt execution for 500 milliseconds (1/2 second)

Next c

retval = FlashWindow(Form1.hWnd, 0)  ' make sure the window looks normal





Daron Flatt







-----Original Message-----

From: Espen Hoff [mailto:post@e...]

Sent: Sunday, October 28, 2001 3:03 PM

To: ASPToday Discuss

Subject: [asptoday_discuss] blinking taskbar





Hello everyone!



Do any of you know how to make the taskbar icon/window blink when it is

minimized and when an event occurs?

You do? Great!

Please post an answer for me.

Thank you.



Regards

Espen Hoff

  Return to Index