Hi, aiki727,
If the image is stored in the resource editor (and accessed via the resource manager), then you'll get this for free. The image will get built into the application's resources, and there will be no need for you to bring along the separate files during deployment, or link them, or whatever. Just open the resource editor and add your image, and then set the background image to point to the appropriate image in the resource file. This is the preferred method.
If you are instead writing code which loads in the image at run-time from a file (for whatever reason), then you'd need to handle the images files separately for deployment. For example, for deployment via setup projects, you can either add the image file to the setup project directly, or else add the file to the application's project (making sure that its build action in the property grid is set to "Content") and then add the "Content" project outputs of that application to the setup project.
(This is all assuming you're using VS2005 -- it's pretty much the same for VS2002/3, but I forget the exact steps in those previous versions.)
Hope this helps,
--Matt Gertz--*
VB Compiler Dev Lead
-----Original Message-----
From: aiki727 via DotNetMonster.com
Posted At: Tuesday, November 29, 2005 11:23 AM
Posted To: microsoft.public.dotnet.languages.vb
Conversation: Background Image File Location
Subject: Background Image File Location
Hello everyone,
Where do I store a bitmap or jpeg that I am using for a forms background
image when I deploy the application? Or do I link these files to the app
during the deployment?
Thanks
--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...b-net/200511/1