Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
VB

This is probably one of the dumbest questions ever but I have to ask...

I completed a project, my first really large project thanks to a lot of help I got here on this site. When I publish is it will not include all the graphics files. Do I have to import all of them into the project prior to publishing. At this point I have placed them into the form from several places on my hard drives.

On the same note, do you have to tell the VB to add any external programs that it might call from windows, such as media player, or audio player when you publish it?

The program runs fine in debug mode with no errors and I would really like to
test it on a few other systems I have.

Thanks for the advice...

Dr. David Johnson PhD
Posted

1 solution

There are a couple of ways to do it: the first is to import them into your project as resources, the other is to include the files as dependencies when you build your setup project. If you are loading them from "various places" then I would say that the overall approach you are using is wrong: it is hard to be sure that you have not missed a file when building the set up, and such a lack would not be noticeable until the user actually navigated to a specific form (possibly under specific conditions).

I know it sounds like a lot of work, but I would import the graphics as resources, and use them directly from Properties.Resources.MyNamedResource - that way the chance of error later is highly reduced.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900