Solved

Getting error regarding an Icon file?

Posted on 2014-03-04
4
182 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

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…
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
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.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

770 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