Solved

VB.net Images doubling in resource file

Posted on 2008-10-21
2
421 Views
Last Modified: 2010-05-18
Hi

In VB.net I have to load many images into picture boxes on a Windows form.
The way I add an image is by right clicking on the "Resources" folder then
selecting "Add existing item". By my of understanding this is how to embed an image in the project.
Next I click on the Image property of the PictureBox control and select the "Project Resource File" radio button. I then click on import to select the image from the Resource folder BUT the image then gets duplicated in the resource folder. How do I stop this duplication from happening?

Thanks
0
Comment
Question by:murbro
2 Comments
 
LVL 8

Accepted Solution

by:
jorgesv13 earned 500 total points
ID: 22767946
Just don't do the first step.
If you want to add an image an embed it in the project, just:
1. Drag a PictureBox to your Windows Form
2. Select the Image Property and select "Project resource file"
3. Click Import and select the image.

By following this steps, the image will be automatically copied to the resource folder of your project, and embed in the Assembly.
0
 

Author Closing Comment

by:murbro
ID: 31597328
Thanks very much
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question