Find Code:
All Words
Any of the Words
Exact Phrase
Home
:
Code
:
Forums
:
Submit
:
Mailing List
:
About
:
Contact
Code
All
VB.NET
ASP.NET
C#
VB Classic
ASP Classic
Snippets
Popular
Resources
Submit Code
Forums
Articles
Tips
Links
Books
Contest
Link to us
Here is a code using API Functions. Flash Form fiv...
Author:
Ayan Chaudhuri
E-mail:
Click to e-mail author
Submitted:
2/3/2002
Version:
VB5
Compatibility:
VB5, VB6
Category:
Windows API
Views:
12300
Here is a code using API Functions. Flash Form five times to get the user's attention.
Declarations:
Declare Function FlashWindow Lib "user32.dll" (ByVal hwnd As Long, ByVal bInvert As Long) As Long Declare Sub Sleep Lib "kernel32.dll" (ByVal dwMilliseconds As Long)
Code:
Private Sub Command1_Click() ' 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 End Sub
Home
|
Forums
|
Submit
|
Books
|
Mailing List
|
Advertising
|
About
|
Contact
© 2024 A1VBCode. All rights reserved.
Legal disclaimer & terms of use
Privacy statement