How do I stop a notify icon appearing multiple times... then disappear when mouse hovers over them

Hi,
[Re-posted
from Outlook Dev Forum]
I have an Outlook addin which makes use of a System.Windows.Forms.NotifyIcon to display update message without requiring the user to click Okay to dismiss them...etc.
I declare and create it in the addin class (so not in start up or any other event) as:
Public WithEvents notifyIcon As New System.Windows.Forms.NotifyIcon
Then throughout in my code if I need to display a message I use notifyIcon.ShowBalloonTip.  This works great, and I run it off the main thread as well as a syncing background worker thread.  The problem is that when I go down and expand the
system tray, there are often many clones of the icon I use, which then disappear when I hover my mouse over them.
I understand this isn't an uncommon problem, and it happens also with new email icons in the system tray.  However, is there any way I can prevent this from happening, or best practices I need to abide by?
In the Shutdown event I use:
If notifyIcon IsNot Nothing Then
notifyIcon.Visible = False
notifyIcon.Dispose()
End If
Any help would be much appreciated, since I can't seem to find any definitive info elsewhere online.
Thanks!
Tom
Note: I don't actually use a windows form with the notifyIcon, I just declare it as above... not sure if that affects anything?

Would this be the same as using the Application_Quit event for the Outlook addin?  Since I've
seen that in Outlook 2010 onwards it doesn't call the Shutdown event now anymore, so you need to use the Quit event of the application to do any tidy up.  Maybe that is why the icons are remaining.
Thanks,
Tom
Hello,
Wyck has shared a nice example with a form event, and for outlook 2010, we could deal with that notifyIcon inside application quit event.
Based on the document below you shared, it seems that you have found the reason, if that issue still exists, please feel free to let us know.
https://msdn.microsoft.com/en-us/library/office/ee720183(v=office.14).aspx
Regards,
Carl
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • How to make the icons in the dock become bigger when I hover over them?

    I see in my friend's Mac that the icons in the dock become bigger when the user hovers over them with the mouse pointer. Mine don't change when I hover over them. Am I missing something?

    Go to the Apple Menu > System Preferences > then click on the Dock icon.
    Check the box for Magnification:
    Close the Preferences Pane and you should be good to go.
    MtD

  • GUI components only appear when mouse passes over them???

    I have a frame that contains componentes but they only appear when my mouse passes over them or clicks on them. can any one help with this. i do only set vibible after i have added them but the problem seems the same as if i haddent.

    Sorry i couldn't make a SSCCE because it doesnt happen with small programs. my code is pretty long but here it is if any one can help.
       import java.io.*;
       import javax.swing.*;
       import java.awt.*;
       import java.awt.event.*;
       import java.awt.image.*;
       import jmfdemo.*;
       import java.util.*;
        public class LaserControll extends Frame implements ActionListener
          //Setings
          int vk[]=new int[9];
          int samplePlus=100;
          boolean vis=true;
          int rePaint=1000;
          int time=250;
          int numP=5;
            //End of Settings
          private BufferedImage image1;
          private FrameGrabber vision1;
          private int threshold = 200;
          private Color on = Color.white;
          private Color off = Color.black;
          int x,y;
          Rectangle r1,r2,r3,r4,r5,r6,r7,r8,r9;
          boolean found=false;
           public void paint(Graphics g) {
             if (image1 != null)
                g.drawImage(image1, 10, 30, this);
           public void load()
             try{
                File f=new File("Data");
                Scanner sk=new Scanner(f);
                for (int y=0;y<9;y++)
                {sk.nextInt();
                   sk.nextInt();
                   sk.nextInt();               
                   sk.nextInt();
                   vk[y]=sk.nextInt();
                vis=sk.nextBoolean();
                samplePlus=sk.nextInt();
                rePaint=sk.nextInt();
                time=sk.nextInt();
                numP=sk.nextInt();}
                 catch(Exception q)
                {System.out.println(q+"");
                   JOptionPane.showMessageDialog(null,"Error: Data File Cannot be Found","Error",JOptionPane.ERROR_MESSAGE);
                   System.exit(0);
           public void update(Graphics g) {
             paint(g);
           public void getRects()throws IOException
          {File f=new File("Data");
             Scanner sc=new Scanner(f);
             int x,y,w,h;
             x=sc.nextInt();
             y=sc.nextInt();
             w=sc.nextInt();
             h=sc.nextInt();
             sc.nextInt();
             r1=new Rectangle(x,y,w,h);
             x=sc.nextInt();
             y=sc.nextInt();
             w=sc.nextInt();
             h=sc.nextInt();
             sc.nextInt();
             r2=new Rectangle(x,y,w,h);
             x=sc.nextInt();
             y=sc.nextInt();
             w=sc.nextInt();
             h=sc.nextInt();
             sc.nextInt();
             r3=new Rectangle(x,y,w,h);
             x=sc.nextInt();
             y=sc.nextInt();
             w=sc.nextInt();
             h=sc.nextInt();
             sc.nextInt();
             r4=new Rectangle(x,y,w,h);
             x=sc.nextInt();
             y=sc.nextInt();
             w=sc.nextInt();
             h=sc.nextInt();
             sc.nextInt();
             r5=new Rectangle(x,y,w,h);
             x=sc.nextInt();
             y=sc.nextInt();
             w=sc.nextInt();
             h=sc.nextInt();
             sc.nextInt();
             r6=new Rectangle(x,y,w,h);
             x=sc.nextInt();
             y=sc.nextInt();
             w=sc.nextInt();
             h=sc.nextInt();
             sc.nextInt();
             r7=new Rectangle(x,y,w,h);
             x=sc.nextInt();
             y=sc.nextInt();
             w=sc.nextInt();
             h=sc.nextInt();
             sc.nextInt();
             r8=new Rectangle(x,y,w,h);
             x=sc.nextInt();
             y=sc.nextInt();
             w=sc.nextInt();
             h=sc.nextInt();
             sc.nextInt();
             r9=new Rectangle(x,y,w,h);
           public int sample()
          {int sample=image1.getRGB(x/2,y/2);
             int sr,sg,sb;
             Color sc=new Color(sample);
             sr=sc.getRed();
             sb=sc.getBlue();
             sg=sc.getGreen();
             sample=((299 * sr + 587 * sg + 114 * sb) / 1000);
             return sample;
           class WindowListener extends WindowAdapter {
              public void windowClosing(WindowEvent e) {
                System.exit(0);
           public LaserControll()throws Exception {
             Robot r =new Robot();
             load();
             addWindowListener(new WindowListener());
             setTitle("Laser Control");
             try {
                vision1 = new FrameGrabber();
                vision1.start();
                 catch(FrameGrabberException fge) {
                   System.out.println(fge.getMessage());
             image1 = vision1.getBufferedImage();
             setResizable(false);
             Color col = new Color(229,229,229);
             setBackground(col);
             x=image1.getWidth()-1;
             y=image1.getHeight()-1;
             for (int i=0;i<5000;i++)
                image1 = vision1.getBufferedImage();
                repaint();
             int sample=sample();       
             try{
                getRects();}
                 catch(Exception z)
             JButton hide=new JButton("Hide");
             hide.setBounds(35,183,100,20);
             hide.addActionListener(
                    new ActionListener() {
                       public void actionPerformed(ActionEvent e)
                         setAlwaysOnTop(true);
             JButton rc=new JButton("Recalibrate");
             rc.setBounds(35,160,100,20);
             rc.addActionListener(
                    new ActionListener() {
                       public void actionPerformed(ActionEvent e)
                      {int sam=sample();
                         JOptionPane.showMessageDialog(null,"New Threshold set to: "+sam+samplePlus,"Recalibrated",JOptionPane.INFORMATION_MESSAGE);
             JTextField status= new JTextField("");
             status.setBounds(146,184,20,19);
             status.setEditable(false);
             setLayout(null);
             add(status);
             add(hide);
             add(rc);
             setSize(image1.getWidth(this) + 20, image1.getHeight(this) + 95);
             setVisible(vis);     
          repaint();
             while(true) {
                image1 = vision1.getBufferedImage();
                repaint();
                try {
                   Thread.sleep(1);
                    catch(Exception e) {
                      System.out.println("Error");
                for (int i=0;i<x;i=i+numP)
                   for (int j=0;j<y;j=j+numP)
                      int v=image1.getRGB(i,j);
                      Color c =new Color(v);
                      int red=c.getRed();
                      int green=c.getGreen();
                      int blue=c.getBlue();
                      int b=(299 * red + 587 * green + 114 * blue) / 1000;
                      if (b>sample+samplePlus)
                         if (r1.contains(i,j))
                            r.keyPress(vk[0]);
                            r.keyRelease(vk[0]);
                            status.setText("1");
                            found=true;}
                         if (r2.contains(i,j))
                            r.keyPress(vk[1]);
                            r.keyRelease(vk[1]);
                            status.setText("2");
                            found=true;}
                         if (r3.contains(i,j))
                         { r.keyPress(vk[2]);
                            r.keyRelease(vk[2]);
                            status.setText("3");
                            found=true;}
                         if (r4.contains(i,j))
                         { r.keyPress(vk[3]);
                            r.keyRelease(vk[3]);
                            status.setText("4");
                            found=true;}
                         if (r5.contains(i,j))
                         { r.keyPress(vk[4]);
                            r.keyRelease(vk[4]);
                            status.setText("5");
                            found=true;}
                         if (r6.contains(i,j))
                         { r.keyPress(vk[5]);
                            r.keyRelease(vk[5]);
                            status.setText("6");
                            found=true;}
                         if (r7.contains(i,j))
                         { r.keyPress(vk[6]);
                            r.keyRelease(vk[6]);
                            status.setText("7");
                            found=true;}
                         if (r8.contains(i,j))
                         { r.keyPress(vk[7]);
                            r.keyRelease(vk[7]);
                            status.setText("8");
                            found=true;}
                         if (r9.contains(i,j))
                         { r.keyPress(vk[8]);
                            r.keyRelease(vk[8]);
                            status.setText("9");
                            found=true;}
                         if (found==true)
                            try
                               Thread.sleep(time);
                                catch(Exception e)
                                  System.out.println("Error!");
                            sample=sample();
                            for (int z=0;z<rePaint;z++)
                               image1 = vision1.getBufferedImage();
                               repaint();
                            found=false;
               setVisible(vis);
           public void actionPerformed (ActionEvent e)
           public static void main(String[] args)throws Exception {
             LaserControll a=new LaserControll();
       }

  • Menu Bar Icons Appear...then Disappear, then Reappear

    I can't find this problem anywhere else on the internet being addressed. I have a MacBook Pro 2Ghz Intel Core Duo. Ever since I did a clean install of Leopard I have this weird problem. In the upper right corner where the Finder, Battery, Volume, Wireless, Date/Time and Stacks Icons are located, they will appear, then disappear, then reappear constantly. Ive tried restarting, Ive even gone into the System Preference to choose the Time/Date option. When I click display time in Menu Bar it will let me select it, then when the icons disappear that option goes away in sync. Very strange, has anyone else had this problem and have a cure for it?

    I'm having the exact same problem and I know what's causing it but I don't have a solution to fix it. It is happening for me due to my Firewire CD/DVD drive. It's just a regular Sony drive that never had any problems with 10.4. Now though when DVD is mounted it starts up the menu bar issues. When I eject the DVD the menu bar goes back to acting normal.
    I did a google search and found another thread on the macfixit forums. One guy found a solution to fix his problem with it and that was to trash these two preference files in your home/Library. One was com.apple.finder.plist and I can't remember the other one. I tried it but it doesn't work for me since it seems to be my firewire DVD drive that's causing the issues.
    Do you have an external Firewire device connected? If so try disconnecting it and see if that fixes your problem. I sure hope apple fixes this issue soon.

  • Adobe Reader XI, Comments, Comment Dialog, when multiple paragraphs entered causes comment to rapidly flicker when mouse hovers over comment icon.  Unreadable.  Can still right click and open the icon to edit text.  Windoes 8.1.  Repeatable on two identic

    Adobe Reader XI downloaded to my wife's laptop tonight.  Windows 8.1.  Open PDF, select Comments > comment dialog, then place icon on PDF and start editing.  Small edits work fine.  Large amounts of comment text, once you move off the icon and come back and hover over the comment icon, causes the full size comment window to flicker rapidly (5-10ms between on and off) until you move the mouse away from the icon.  Unreadable.  Tried on my identical model laptop and happens there too.  What's going on?

  • How to turnoff toolbar pup-up descriptions when mouse hovers over buttons and tabs?

    Already tried disabling all add-ons in safe mode.
    Thank you

    Hi,
    Please try setting '''browser.chrome.toolbar_tips''' to false in Firefox [http://kb.mozillazine.org/About:config about:config]
    [http://kb.mozillazine.org/About:config_entries about:config Entries]

  • How to record menus that display when mouse hovers

    The software I am creating a training session for has
    pull-down menus that display when the mouse clicks on them or when
    the mouse hovers over them. I can only get Captivate to record the
    menus when the mouse is clicked - and cannot determine how to
    record the menus that display when the mouse hovers. Can anyone
    offer any suggestions as to how to fully capture the displayed
    software screens and menus? Thanks.

    > Thanks. The Print Screen works just OK - although it is
    a cumbersome and
    > the
    > timing is not as smooth as it could be. As I make a
    series of training
    > videos
    > over time and many menus will be missed and more retakes
    will be required.
    >
    You can change the timing yourself - just reduce the time the
    slide catch
    with print screen to a second or whatever works for you.
    Steve
    http://twitter.com/Stevehoward999
    Adobe Community Expert: eLearning, Mobile and Devices
    European eLearning Summit - EeLS
    Adobe-sponsored eLearning conference.
    http://www.elearningsummit.eu

  • How can i stop the upgrade message appearing everytime i open iphoto?

    How can i stop the upgrade message appearing everytime i open iphoto?
    It's getting ridiculous that every time i open iphoto that it insists in being upgraded and repaired. Anyone know how i can get rid of this without reinstalling it?
    Thanks

    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Repair Database. If that doesn't help, then try again, this time using Rebuild Database.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. (In early versions of Library Manager it's the File -> Rebuild command. In later versions it's under the Library menu.)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.  
    Regards
    TD

  • How can I stop Yahoo mail from appearing on my iPhone 5 iOS 8.0.2

    How can I stop Yahoo mail from appearing on my iPhone 5 iOS 8.0.2

    You either remove your Yahoo email address from the device or you turn of the 'Mail' option for that account under Settings > Mail, Contacts, Calendars.

  • Just brought my daughter an iphone and have her setup on my ID. Want to be able to see her messages and photos but dont want my info to appear on her phone. How do i stop the messages from appearing on her phone? (5's)

    Just brought my daughter an iphone and have her setup on my ID. Want to be able to see her messages and photos but dont want my info to appear on her phone. How do i stop the messages from appearing on her phone?

    If you have set up photo stream, this can't be done. As soon as you switch off photo stream on her device to keep your photos from coming to her device, you won't get any as well from her. Same for messages, you can't have both, sorry.
    Maybe look into the family sharing feature if you want the photos to be shared:
    Apple - iCloud - Family Sharing

  • When opening Firefox, I keep receiving a window stating: I am getting a JavaScript application window stating" TypeError: Components.classes['@softage.ru/skype/SkypeFfExtension;1']. How can I stop this messagge to appear ?

    Each time I open Firefox program, I keep getting a window stating: I am getting a JavaScript application window stating" TypeError: Components.classes['@softage.ru/skype/SkypeFfExtension;1'].
    How can I stop this message to appear ?

    Issue caused by Skype addon by Firefox. Which version of Skype are you using? Make sure its latest one?
    *skype.com

  • How do I stop unwanted fullpage ads appearing

    how do I stop unwanted fullpage ads appearing
    == This happened ==
    Every time Firefox opened
    == as soon as i use firefox to go to any site, does not seem to occur with explorer

    See these KB articles:
    https://support.mozilla.com/en-US/kb/Pop-up+blocker
    http://kb.mozillazine.org/Popups_not_blocked

  • I am having issues with streaming music from iTunes on my MacBook Pro to my audio system through AirPlay.  Works perfectly with my iPod Touch.  The AirPlay icon appears irregularly in iTunes and when selected doesn't connect.  Running latest IOS software.

    I am having issues with streaming music from iTunes on my MacBook Pro to my audio system through AirPlay.  Works perfectly with my iPod Touch.  The AirPlay icon appears irregularly in iTunes and when selected doesn't connect.  Running latest IOS software.

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Unsync all music and resync
    - Reset all settings      
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up           
    - Restore to factory settings/new iOS device.
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar          
    You said:
    No, I do not want to "factory reset" my iPod. No I do not wish to do anything crazy long or hard to fix this. 
    That may be necessary, It is not what you want to do/not do but what is required to resolve your problem.

  • How do I stop iphoto from launching itself every time I use my laptop?

    How do I stop Iphoto from launching itself every time I use my laptop?

    Some possibilities:
    Right click on the iPhoto icon in the Dock. Is Open at Log In Selected?
    Check your System Preferences -> Accounts -> Log In Items
    Is there a camera or anything that your Mac might think is a camera (flash drive, USB Hard Disk formatted to a FAT format, phone) attached to your Mac. If so, disconnect it. If you don't want to disconnect it, set iPhoto to "Do Nothing" when a camera is attached. You do this in the iPhoto Preferences.

  • How do I get a popup to appear every time a download finishes?

    How do I get a popup to appear every time a single download finishes? I want a big popup window. I want it to interrupt me as I'm watching full screen movies. In otherwords, if I download 100 different files, when the first finishes, I get a popup. Second, another popup. Third, you get the idea. I want it to be the opposite of low profile. I want it to be something I can't ignore, something that most people wouldn't want--to be annoying. Like me.

    First place I tried. I've searched online extensively. trying this as last resort. Please don't tell me where to look. I've probably already looked there. I'm hoping someone sees this and knows of an addon specifically and points me there exactly. Otherwise, posting to this question will only dilute its freshness.

Maybe you are looking for

  • Can't update Camera RAW 6.7.1 on Mac for CS 5

    Mac OS X 10.7.5 Running PS Cs5 version 12.0 w: camera raw 6.0 Need camera raw 6.7.1 Camera RAW update fails. Says I need Application manager. Application Manager update fails. "Installer failed to initialize. Please download support advisor to detect

  • How to convert Smart Form into PDF format and return the result in BAPI?

    I want to convert a Smart Form into PDF format and return the result in BAPI. can anyone tell me how it can be done with related example regards pranay

  • Experience with W530 and Ubuntu

    Is there anyone here who uses Ubuntu (13.10) as their primary OS on the W530? If yes, what has been the experience? 1. Did everything work (specially the finger print login) 2. Any other driver issue etc. 3. Stability / Speed of the machine? I have b

  • Mail and MSN

    I just upgraded to Leopard from Tiger and my mail doesn't work. I had it previously set to send/receive from my MSN account and it worked fine. Any help?

  • Not Publishing "Work in Progress" Files

    Hi, My project contains many "Work in Progress" files that I do not want to publish. I have tagged them with the relevant WIP tag. I have also defined a default page to display in the publishing wizard. Is this the page that is displayed when the pag