by Tomer Cohen (2 Submissions)
Category: Custom Controls/Forms/Menus
Compatability: Visual Basic 3.0
Difficulty: Unknown Difficulty
Date Added: Wed 3rd February 2021
Rating: (19 Votes)
This code causes the form's TitleBar and the form's TaskBar Window to Flash.
Assumes
Create a Timer control and name it - Timer1
API DeclarationsPrivate Declare Function FlashWindow Lib "user32" Alias "FlashWindow" (ByVal hwnd As Long, ByVal bInvert As Long) As Long
Private Sub Form_Load()
Timer1.Interval = 300 'Change value depending on the speed of flahing.
End Sub
Private Sub Timer1_Timer()
FlashWindow hwnd, 1
End Sub