by Pragnesh Vaghela (1 Submission)
Category: Custom Controls/Forms/Menus
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Fri 20th October 2000
Date Added: Mon 8th February 2021
Rating: (1 Votes)
This code is display the use of FlashWindow Api Function When you form window is in background then it can flash in taskbar and give the
API Declarations
' just mail to [email protected]
' for more funny code in visual basic
Option Explicit
Private Declare Function FlashWindow Lib "user32" (ByVal hwnd As Long, ByVal bInvert As Long) As Long
Private Declare Function GetActiveWindow Lib "user32" () As Long
Dim a As Long
Dim b As Long
b = Form1.hwnd
End Sub
Private Sub Timer1_Timer()
Dim nReturnValue As Integer
a = GetActiveWindow()
If a <> b Then
nReturnValue = FlashWindow(Form1.hwnd, True)
End If
End Sub
No comments have been posted about This code is display the use of FlashWindow Api Function When you form window is in background then. Why not be the first to post a comment about This code is display the use of FlashWindow Api Function When you form window is in background then.