|
-
Dec 30th, 2011, 11:26 PM
#1
Thread Starter
Frenzied Member
[RESOLVED] Question on adding images to a project
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
-
Dec 30th, 2011, 11:35 PM
#2
Re: Question on adding images to a project
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.
-
Dec 31st, 2011, 09:38 AM
#3
Thread Starter
Frenzied Member
Re: Question on adding images to a project
Thanks! That helps me a lot!
Warren
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|