I am completely concerned about this issue and I do not know what to do. I created a simple C # application for Windows Form using Visual Studio 2012 Premium. I have a small program that launches and creates NotifyIcon in the system tray. When you click on the tray icon, a context menu is displayed in which several menu options are displayed ("Options", "About", etc.), where each option displays a form. I added two icon files (.ico) through resources by right-clicking on a project element, properties, resources. I programmatically change the icon of my NotifyIcon, alternating between two different icons. My problem is that my old icons continue to show, and not my new ones, which I added to the project. To be clear, my problem is that OLD icons continue to be displayed - everything works, but there are no errors,my last badges just don't appear. The way to change the icons in the code:
notifyIcon.Icon = Resources.IconA03312014;
I initially made my icons and used them, and then decided to change them a bit - I changed some colors, etc. Therefore, I removed the old icons from my project by clicking the Exclude from project option. Then I added my new badges that had different names. Then I updated the two code links that load the icons to use the new names. No matter what I do, my new / updated icons are not displayed!
Visual Studio , . , , , Windows, . .
, , - Windows 8 ( ). , .
, , Visual Studio. explorer, ie4uinit.exe -ClearIconCache IconCache.db. , , , (http://www.sevenforums.com/tutorials/13102-notification-area-icons-reset.html). . . .ico . , , ( icobundl.exe) , . , Windows , , Visual Studio - A.ico Windows, B.ico A.ico, B.ico A. , .
, , , , , ( , Visual Studio la la land) .
, :
...
if(firstState){
notifyIcon.Icon = Resources.IconA03312014;
optionsForm.Icon = Resources.IconA03312014;
}
else{
notifyIcon.Icon = Resources.IconB03312014;
optionsForm.Icon = Resources.IconB03312014;
}
firstState = !firstState;
...
, notifyIcon optionsForm , OLD-, ( -/- VS). / .
.exe , , - exe, Visual Studio. .ico, , ARE. - Visual Studio?
- ? , -, Visual Studio - , ! , swapout . notifyIcon "A" "B", A B - , !
, . , .