Connecting Tech Pros Worldwide Help | Site Map

flashing taskbar

JC
Guest
 
Posts: n/a
#1: Nov 15 '05
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
Paul E Collins
Guest
 
Posts: n/a
#2: Nov 15 '05

re: flashing taskbar


"JC" <james_crane@btinternet.com> wrote:
[color=blue]
> I want the task bar button to flash[/color]

Use FlashWindowEx, as described here:
http://tinyurl.com/os7k

P.

--
www.CL4.org


Nicholas Paldino [.NET/C# MVP]
Guest
 
Posts: n/a
#3: Nov 15 '05

re: flashing taskbar


On 26 Sep 2003 07:28:45 -0700, JC <james_crane@btinternet.com> wrote:
[color=blue]
> 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[/color]

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.

--
- Nicholas Paldino [.NET/C# MVP]
- nick(d0t)paldino=At-exisconsulting'dot|com
James Crane
Guest
 
Posts: n/a
#4: Nov 15 '05

re: flashing taskbar


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

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Closed Thread


Similar C# / C Sharp bytes