Link to home
Start Free TrialLog in
Avatar of Murray Brown
Murray BrownFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Visual Studio Windows form image files

Hi

I am building a Windows form in visual studio 2005, which includes several small bitmap files that are loaded into a PictureBox in various scenarios.

What is the best way to load these images (and if necessary delete them) into the project,
so that the project does not have to reference any files outside of the project folders.

Is the correct approach to save the bitmap files into a new sub-folder of the main folder and then load them by clicking on the image property and and loading them into the project resource/local resource file.

In short I want to be able to cleanly load/unload bitmap files so that they are part of the project and not connected to anything outside of it.

Thank you in advance…..
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

1) Are these dynamic or static images?

2) If they are static, then you can load the images into the PictureBox controls, and the images will be stored in binary format in the .resx file associated with the form.

Bob
BTW, I have come up with a working Excel border dialog, if you are interested in a working example.

Bob
ASKER CERTIFIED SOLUTION
Avatar of ericwong27
ericwong27
Flag of Singapore image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Murray Brown

ASKER

Hi Bob

I am really interested in seeing a working example for an Excel border dialog

Thanks

Murray