Refreshing system tray icons programmatically
问题 I've an application which has a system tray icon. While uninstalling I'm killing the process if its running. So, as am not gracefully stopping the app, the icon remains in the system tray and will remove only if we hover the mouse on it. I wrote a code that would run the cursor along the tray and get the cursor back in its initial position. This is what I have done: [DllImport("user32.dll")] static extern IntPtr FindWindow(string className, string windowName); [DllImport("user32.dll")] static