2

Can i change my applicatipn exe icon from one to another at runtime programatically? for example: if i create an application with C# 3 to check the time, and i make a condition like that: (if the time is am) { the application set the exe icon to icon1.ico } else { the application set the exe icon to icon2.ico }

Dhanaraj
  • 27
  • 1
  • 5
  • Yes... however, if you're talking the icon on the desktop / start menu you can, but that takes a bit more work – BugFinder Nov 08 '16 at 09:56
  • I'm not sure if you want to change the exe icon. Do you? Do you want to change the application tray icon or the taskbar icon? If yes, in both cases it's enough to have 2 icons in resources of your project and change `this.Icon` or `notifyIcon1.Icon` to desired resource value based on some critera. – Reza Aghaei Nov 08 '16 at 09:57
  • Hi Reza Aghaei, I need to change the exe icon. – Dhanaraj Nov 08 '16 at 10:08
  • You can indeed. However, you havent shown at all what you tried. you only asked if it were possible – BugFinder Nov 08 '16 at 13:55

0 Answers0