Solved

VB.net Images doubling in resource file

Posted on 2008-10-21
2
424 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Error building VS2105 solution from repository 1 60
Nested forach loop to linq 3 41
Shared Service Environment 2 54
.NET XML to Dictionary - XML has repeating node names 8 28
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…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

739 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