I'm having some trouble getting images on a menuitem. I added the images through a Resource file and set the build method to resource. All images are pngs in my Resource file. The images show up in the editor, but when I run the app with the play button they don't show up in the app.
that was definitely a direct cut and paste. I tried the fix, but it didn't go... I tried on another section of code, but it's all set up the same. Here's the part of code I tried it on.
Another thing I might need to mention is that I didn't reference my resource file anywhere in this xmal document. I'm not sure how, or if that's a necessary step. If it is where does the reference go, right after the first window tag?
Also how is a reference made if one is needed?
You and I think AtmaWeapon or UltimaWeapon used to help me under another name NewVBProgrammer. I had to sign in as a new name though because I forgot my old password.
Oh and since then I learned about classes and all that, lol...
Now in the properties tray in the right hand side there's a drop down labelled source. I had to select the source in there...it reverted my code back to the simpler method
Code:
<Image Source="Resources/NewFile.png"></Image>
but the funny thing is I had tried that first... The only reason this worked is because I went through the property method in the solution explorer there... Not sure why...maybe a bug in VS?
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET. subscribe