Solved

VB.net Images doubling in resource file

Posted on 2008-10-21
2
420 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

785 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