by Ayan Chaudhuri (8 Submissions)
Category: Windows API Call/Explanation
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Sat 2nd March 2002
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Here is a code using API Functions Flash Form five times to get the user's attention
API Declarations
Declare Sub Sleep Lib "kernel32.dll" (ByVal dwMilliseconds 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 minute)
Next c
retval = FlashWindow(Form1.hwnd, 0) ' make sure the window looks normal
No comments have been posted about Here is a code using API Functions Flash Form five times to get the user's attention. Why not be the first to post a comment about Here is a code using API Functions Flash Form five times to get the user's attention.