trayicon - prevent more than one tray icon in c# -
i developing application in c#.net,and writing code display icon in system tray,and whenever new message arrives balloon tooltip shown there,which has click event open new message arrived,everything works fine,but problem getting multiple numbers of icon generated in system tray,which shuld one,how can prevent it?i found on internet how dispose them,but couldn't find way prevent more one.or there better way show notifications newly received message..please me if know solution.. there better custom solutions available see here , here examples. however, system tray doesn't refresh automatically. if show/hide multiple system tray icons, can mess tray up. disposed icons disappear when mouse hover. however, there way refresh system tray programmatically. reference here . note : sendmessage function, sends specified message window or windows. sendmessage function calls window procedure specified window , not return until window procedure has processed message. ...