Hi everyone,
Just a quick question. If I add an image to the program where the image is listed in solution explorer, do I still have to include the file? Its not embeded in the program right? Just checking.
Warren
Printable View
Hi everyone,
Just a quick question. If I add an image to the program where the image is listed in solution explorer, do I still have to include the file? Its not embeded in the program right? Just checking.
Warren
If you simply add the image file to your project in the Solution Explorer then it's just a loose file. In that case you would set its Copy To Output Directory property to True and it will be copied to the output folder along with the EXE for you to deploy. That would make sense if you wanted the user to be able to delete or replace the image file after deployment.
If you don't want the user to be able to meddle with the image then you should be embedding them as resources. To do that, open the Resources page of the project properties and add the image files as resources. They will still show up in the Solution Explorer in the Resources folder but you can basically just ignore them. In code, you access the images using My.Resources.
Thanks! That helps me a lot!
Warren