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
Solved

Getting error regarding an Icon file?

Posted on 2014-03-04
4
183 Views
Last Modified: 2014-03-05
I'm getting this error (see attached image) and I don't know where it's being genereated. The file in question does reside in my Resources File.
Screenshot.jpg
0
Comment
Question by:BlakeMcKenna
  • 2
  • 2
4 Comments
 
LVL 40
ID: 39904343
Resource files are regenerated each time you compile. If the image file is no longer available at the original location, the compiler cannot recreate the resource.

The best way to work with external resources is to create a sub-directory in your project, copy all the necessary resources in that directory, and point to that directory for your resources. That way, if the original file is not longer available, or if the project is moved from one computer to another, the referenced file will still be there.
0
 

Author Comment

by:BlakeMcKenna
ID: 39904475
You mentioned in another post it wasn't a good idea to have sub-directories like that because user's could possibly delete them?
0
 
LVL 40

Accepted Solution

by:
Jacques Bourgeois (James Burger) earned 500 total points
ID: 39905370
I am talking here about a subdirectory in your project, which won't be installed on the user computer, since the images are incorporated in the application itself through the resource files. This is a directory used by the compiler, not by the application.

I do not remember about that other post, but it was probably because the images were distributed as individual image files, which is not the same thing as resources.
0
 

Author Comment

by:BlakeMcKenna
ID: 39906391
That makes sense...thanks for the clarification James!
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
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…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

828 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