Link to home
Start Free TrialLog in
Avatar of RituSingh
RituSingh

asked on

Flash Window API in C# help Needed

hello ,
   I have to Use Flash Window  API in C# to blink the window.But some how I could not fine sufficient help on it, Does any body know how to use Flash Window  API in C#. Please send me sample code.
        Thanks in advance
          Ritu Singh
ASKER CERTIFIED SOLUTION
Avatar of Fahad Mukhtar
Fahad Mukhtar
Flag of Pakistan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
you need System.Runtime.InteropServices

To use this api: (To blink that window)

put this code

FLASHWINFO f = new  FLASHWINFO();              
f.hwnd=this.Handle;  
f.dwTimeout=0;
f.dwFlags = FLASHW_ALL;
f.cbSize = Marshal.SizeOf( f);
f.uCount=100;
FlashWindowEx( ref f);

Good luck :)