I have a System.Windows.Forms.Form and want to change the Form.Icon at runtime to display a status. I\'ve managed to load the icon from the projects ressources:
I Guess, first of all, your GetObject(...) is returning null. Thats the reason the type casting is ending up silently neither throwing error nor change the icon.