WPF (Vb.net): How to change the application icon dynamically? -
i'm working on simple application windows (if ask, windows vista+ compatible) , i'd user able change icon of application.
i have 2 icons, 1 old , 1 new, , i'd user able go settings (for example) , check "use old icon" or uncheck it, , depending on chosen option icon of application - shortcut desktop icon, icon in tray bar, icon in alt+tab menu, , on - change 1 chosen.
the application can make change after has been reopened (it's not important show immediatelly).
is possible? or way set icon through project settings before compiling it?
thanks , time!
this works icon , tray
tested - not guess
this.icon = this.icon = new bitmapimage(new uri(@"myicon.ico", urikind.relative));
Comments
Post a Comment