VB .Net 2.0
I am trying to change the NotifyIcon's icon, but it only work while debugging. If I copy the .exe for other folder than Debug/Release, it's doesn't work anymore. It's sounds like a "missing file". But the icons are set to "Embedded in .resx", and the Resource.resx is set to "Embedded Resource". So I don't think it is missing files.
I already try with
NotifyIcon1.Icon = My.Resources.MyIcon
NotifyIcon1.Icon =
Drawing.Icon.FromHandle(My.Resources.MyIcon.Handle)
NotifyIcon1.Icon =New _
Icon(System.Reflection.Assembly.GetExecutingAssembly.GetManifestResourceStream("assembly.MyIcon"))
After any of those tries, the icon stay the same what was configured at design time.
Thanks.