473,221 Members | 1,850 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,221 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 3327
"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...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...

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.