G
Guest
I am trying to show a picture in a form but using visual studios C# I am getting a error everytime I want to deploy my program. I cannot find the reason
Assembly assembly = Assembly.GetExecutingAssembly()
Image image = Image.FromStream(assembly.GetManifestResourceStream("picture.jpg"))
the debugger holds on the second line and tells me that he has no valid value for the stream. So my understanding is that he cannot find the file picture.jpg.
I have been trying all kinds of different things to get the file picture.jpg embedded in the programma but I have no luck.
Can someone be so kind to help me out with this
Thanks Bardo
Assembly assembly = Assembly.GetExecutingAssembly()
Image image = Image.FromStream(assembly.GetManifestResourceStream("picture.jpg"))
the debugger holds on the second line and tells me that he has no valid value for the stream. So my understanding is that he cannot find the file picture.jpg.
I have been trying all kinds of different things to get the file picture.jpg embedded in the programma but I have no luck.
Can someone be so kind to help me out with this
Thanks Bardo