VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



A Flashing Form

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 Declarations
Private Declare Function FlashWindow Lib "user32" Alias "FlashWindow" (ByVal hwnd As Long, ByVal bInvert As Long) As Long

Rate A Flashing Form

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

Download this snippet    Add to My Saved Code

A Flashing Form Comments

No comments have been posted about A Flashing Form. Why not be the first to post a comment about A Flashing Form.

Post your comment

Subject:
Message:
0/1000 characters