flashing taskbar

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • JC

    #1

    flashing taskbar

    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

    #2
    Re: flashing taskbar

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

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

    P.

    --



    Comment

    • Nicholas Paldino [.NET/C# MVP]

      #3
      Re: flashing taskbar

      On 26 Sep 2003 07:28:45 -0700, JC <james_crane@bt internet.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("user 32.dll")]
      public static extern bool FlashWindow(Int Ptr hWnd, bool bInvert);

      Hope this helps.

      --
      - Nicholas Paldino [.NET/C# MVP]
      - nick(d0t)paldin o=At-exisconsulting' dot|com

      Comment

      • James Crane

        #4
        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!

        Comment

        Working...