Murray Brown
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…..
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…..
BTW, I have come up with a working Excel border dialog, if you are interested in a working example.
Bob
Bob
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi Bob
I am really interested in seeing a working example for an Excel border dialog
Thanks
Murray
I am really interested in seeing a working example for an Excel border dialog
Thanks
Murray
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