473,399 Members | 4,177 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

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
Nov 29 '05 #1
5 3347
"aiki727 via DotNetMonster.com" <u15715@uwe> schrieb:
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?


As a separate file in the application's directory or as an embedded
resource.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 29 '05 #2
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
Nov 29 '05 #3
Thanks for the reply.

Another basic question: what are the bin and obj files actually used for?
What are their purposes? I know when designing an app, a text file can be
kept in the bin folder and accessed without a path, just the file name,
because VB looks in the bin folder by default.

--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...b-net/200511/1
Nov 30 '05 #4
"aiki727 via DotNetMonster.com" <u15715@uwe> schrieb:
Another basic question: what are the bin and obj files actually used for?
What are their purposes? I know when designing an app, a text file can be
kept in the bin folder and accessed without a path, just the file name,
because VB looks in the bin folder by default.


You do not need to care about the "obj" folder -- it's used during
compilation of the project, for example. The "bin" folder of the project
contains the compiled executable. You can take the executable of the "bin"
folder and redistribute it, if you compiled the project using the Release
configuration.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 30 '05 #5
What is the difference in deploying an application as compared to just
copying the compiled exe in the bin folder? Does the deployment just create
an installer program for the app?

Herfried K. Wagner [MVP] wrote:
"aiki727 via DotNetMonster.com" <u15715@uwe> schrieb:
Another basic question: what are the bin and obj files actually used for?
What are their purposes? I know when designing an app, a text file can be
kept in the bin folder and accessed without a path, just the file name,
because VB looks in the bin folder by default.


You do not need to care about the "obj" folder -- it's used during
compilation of the project, for example. The "bin" folder of the project
contains the compiled executable. You can take the executable of the "bin"
folder and redistribute it, if you compiled the project using the Release
configuration.


--
Message posted via http://www.dotnetmonster.com
Nov 30 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

23
by: Erik Schulp | last post by:
Hi all, I am using a background image via a stylsheet. I've used this code: background-image:url("/images/tile.gif"); (which I think is correct) The image doesn't show up however, the path,...
5
by: Gaz | last post by:
Hi, I have found an issue when comparing Firefox with IE6 (Windows) where a page links to a css file that is in it's own directory. IE6 URL property of the background css element uses the...
3
by: Gil | last post by:
Hello, I use VB.NET and have a series of linkbuttons that are inside individual <td>s. Like this: <td background="image.gif"><asp:linkbutton id="myID" runat="server"/></td> I would like...
8
by: Ron Holmes | last post by:
I want to place a background image on a windows form. Is there a way to prevent the image from Tiling without using an image box resized to the size of the form? I am using Visual Studio 2003...
0
by: Kalpesh | last post by:
Hi All, I am using .net crystal reports to develop the reports. The version of crystal report assemblies is 10.2.3600.0. When i run the reports i got following error. #region Retry Report...
8
by: =?Utf-8?B?R3JlZyBMYXJzZW4=?= | last post by:
I'm trying to figure out how to modify a panel (panel1) from a backgroundworker thread. But can't get the panel to show the new controls added by the backgroundwork task. Here is my code. In...
0
by: Waqas.L.Khan | last post by:
Hi guys, I have a problem when trying to create an image file. Basically my code takes any file and gets it's system icon using SHGetFileInfo and then saves the file either by converting it into...
7
by: Struggler | last post by:
Please could somebody help me feel like less of a complete idiot. Following the advice of people who know what they're talking about, I have abandoned MS Front Page and MS Publisher and am trying to...
2
by: thephatp | last post by:
I'm having a problem with IE rendering correctly. I'm experimenting with using all div's in my pages now, and I'm not very familiar with the quirks of IE. I have created a sample page, and I'm...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.