• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 444
  • Last Modified:

API FlashWindow

Flash Window API is not working,
is there any extra file is required
in the system for it or the api is
enough.Help me in this. cheers.
0
Bhaskar Ganapathe
Asked:
Bhaskar Ganapathe
  • 3
  • 3
  • 2
  • +1
1 Solution
 
jjscCommented:
Can you be more specific? That is, in what way is the function not working? It is designed to flash the title bar of a window (once) - if you need to flash several times, it's necessary to use the FlashWindowEx API call...

John
0
 
watyCommented:
0
 
jjscCommented:
That's a *lot* of code to demo the FlashWindow() call :-)
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
watyCommented:
0
 
MarineCommented:
Here is probably the easiest example you will see. This uses the timer.

Public Declare Function FlashWindow Lib "user32" (ByVal hwnd As Long, ByVal bInvert As Long) As Long

Private Sub Timer1_Timer()
FlashWindow Me.hwnd, 1
End Sub

to make it stop blinking you can stop timer. Or if you using loop to do this. Then flashwindow me.hwnd,0
0
 
Bhaskar GanapatheAuthor Commented:
Thank you Marine, Your's code is
working fine. Thanks a lot for this.

0
 
MarineCommented:
:-), no problem. Good Luck.
0
 
MarineCommented:
Will someone get the points for this ?
0
 
jjscCommented:
I wondered when you were going to ask :-) Now if only bhaspup is listening...
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 3
  • 3
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now