Trouble Including Image Files with a Program Distribution through the Resources folder

I'm having some trouble including three image files I need via the Resources folder. In my Resources view, the only 'Persistence' options are 'Linked at compile time' and 'Embedded in .resx' - trying either one, I get a System.ArgumentException when I try to load the images from "Resources\image.gif" - I have three other images that load perfectly find from "Resources\otherimage.gif" - what am I doing wrong?
[438 byte] By [joynerCN] at [2007-12-28]
# 1

Hi,

Try putting all other files in the BIN folder of your project/solution as

i've been told by my lecturer, that is the 1st place the Visual Studio IDE-compiler

looks for files.

Try also ( if you wish ), files in the main folder of your project/solution.

You would only need to put the fileName only in commands with file operations in then.

E.g. ("myFileName.gif") instead of the full path to it.

Regards,

S_DS

Spidermans_DarkSide at 2007-9-4 > top of Msdn Tech,Visual Basic,Visual Basic Language...
# 2

Yes, that'll work for viewing the program on my local machine; but I'm distributing this program, and other people aren't going to put these images in that folder.

I've got images that are packed with the program from prior publishes, but I recall having more options in the 'Persistence' box back then. I had to switch computers for this project, and I'm afraid a lot of stuff got thrown off.

I really need to be able to pack these images with the distribution of the program; any help is appreciated.

joynerCN at 2007-9-4 > top of Msdn Tech,Visual Basic,Visual Basic Language...
# 3

Hi,

The idea i gave is the one my lecturer at university told us,

as a result She and the rest of the students pack a project/solution into a ZIP file

by just archiving the one project/solution folder.

Can you not do the same?

Regards,

S_DS

Spidermans_DarkSide at 2007-9-4 > top of Msdn Tech,Visual Basic,Visual Basic Language...
# 4

For school projects, yeah, that'd work fine.

This isn't a school project.

joynerCN at 2007-9-4 > top of Msdn Tech,Visual Basic,Visual Basic Language...