Hide balloon tip icon

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

    Hide balloon tip icon

    I create a balloon tip in the system tray using:

    notify.ShowBall oonTip(10000, "Text", "More Text", ToolTipIcon.Inf o);

    After the time expires I want the icon to go away. The balloon disappears,
    but I can't reliably get rid of the icon. What's the right way to do that?
  • Mattias Sjögren

    #2
    Re: Hide balloon tip icon

    Dave,
    [color=blue]
    >After the time expires I want the icon to go away. The balloon disappears,
    >but I can't reliably get rid of the icon. What's the right way to do that?[/color]

    You could enable a Timer with an interval of 10000 and hide the icon
    when it ticks.


    Mattias

    --
    Mattias Sjögren [C# MVP] mattias @ mvps.org
    http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
    Please reply only to the newsgroup.

    Comment

    • TerryFei

      #3
      Re: Hide balloon tip icon

      Hi Dave,

      In addition, please make sure you dispose the NotifyIcon.

      I hope the above information is helpful for you. If you have any questions,
      please feel free to let me know. Thanks and have a nice day!

      Best Regards,

      Terry Fei [MSFT]
      Microsoft Community Support
      Get Secure! www.microsoft.com/security

      --------------------[color=blue]
      >From: Mattias Sjögren <mattias.dont.w ant.spam@mvps.o rg>
      >Subject: Re: Hide balloon tip icon
      >Date: Wed, 18 Jan 2006 18:48:23 +0100
      >References: <ACBD062A-5A9B-4991-B7D6-ADDD3EE007A8@mi crosoft.com>
      >X-Newsreader: Forte Agent 3.0/32.763
      >MIME-Version: 1.0
      >Content-Type: text/plain; charset=ISO-8859-1
      >Content-Transfer-Encoding: 8bit
      >Message-ID: <e9rDJfFHGHA.74 0@TK2MSFTNGP12. phx.gbl>
      >Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
      >NNTP-Posting-Host: 85.8.3.112
      >Lines: 1
      >Path: TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP12.phx. gbl
      >Xref: TK2MSFTNGXA02.p hx.gbl microsoft.publi c.dotnet.langua ges.csharp:3794 82
      >X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp
      >
      >Dave,
      >[color=green]
      >>After the time expires I want the icon to go away. The balloon[/color][/color]
      disappears,[color=blue][color=green]
      >>but I can't reliably get rid of the icon. What's the right way to do[/color][/color]
      that?[color=blue]
      >
      >You could enable a Timer with an interval of 10000 and hide the icon
      >when it ticks.
      >
      >
      >Mattias
      >
      >--
      >Mattias Sjögren [C# MVP] mattias @ mvps.org
      >http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
      >Please reply only to the newsgroup.
      >[/color]

      Comment

      Working...