I have a Icon.ico and in the Properties the Build Action is "Resource"...
I want to load that Icon in the Application..
I did something like this:
Icon theIcon = new Icon(System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream("MyNameSpace.Icon.ico"));
that didnt worked (it says "Value of 'null' is not valid for 'stream'.")
What can I do?
try using Application.GetResourceStream method
more information from MSDN