Solved

VB.net Images doubling in resource file

Posted on 2008-10-21
2
418 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
Comment Utility
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
Comment Utility
Thanks very much
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

762 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now