flashing taskbar

  • Thread starter Thread starter JC
  • Start date Start date
J

JC

Hi all!

I have written a little Instant messenger application and I want the
task bar button to flash when a message is recieved - and herein is my
problem - I'm not sure how to make the task bar button flash! Any help
woudl be gratefully revieved.

Thanks

JC
 
Hi all!

I have written a little Instant messenger application and I want the
task bar button to flash when a message is recieved - and herein is my
problem - I'm not sure how to make the task bar button flash! Any help
woudl be gratefully revieved.

Thanks

JC

JC,

You can call the FlashWindow or FlashWindowEx API function through the P/Invoke layer in order to do this. The declaration is as follows:

[DllImport("user32.dll")]
public static extern bool FlashWindow(IntPtr hWnd, bool bInvert);

Hope this helps.
 
Hi Paul,

I have checked out the posting yuou hightlighted - thankyou. I still
have a problem, I am still quite new to c# and am unsure how to actually
make that code work - e.g. how do I actually call the FlashWindowEx
function?


ALso, what is pfwi?

I appreciate any help you can offer.

Yours

JC
 
Back
Top