473,406 Members | 2,356 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,406 software developers and data experts.

Where to put images

I'm new to win forms programming, and am having a bit of trouble figuring
out where to place images that will accompany the program. Do you place
them in the bin directory?? What if you are making a control library to
accompany the app, and there are images that accompany the controls? Do you
place them in with the library, but then how is it distributed if the
control library is just a .dll?

Sorry if my question is confusing... I'm much more used to web apps.

Tnx,

D
Nov 15 '05 #1
2 1530
There are several options, I like embedding them as a resource in the .exe
or .dll where they are used. Then, they are distributed in that binary (not
as separate files).

Here's a tutorial on how to do it:
http://www.codeproject.com/dotnet/embeddedresources.asp

Hope that helps.
--
Mike Mayer - Visual C# MVP
http://www.mag37.com/csharp/
mi**@mag37.com

"MC D" <no****@earthtalk.com> wrote in message
news:10*************@corp.supernews.com...
I'm new to win forms programming, and am having a bit of trouble figuring
out where to place images that will accompany the program. Do you place
them in the bin directory?? What if you are making a control library to
accompany the app, and there are images that accompany the controls? Do you place them in with the library, but then how is it distributed if the
control library is just a .dll?

Sorry if my question is confusing... I'm much more used to web apps.

Tnx,

D

Nov 15 '05 #2
Cor
Hi MC

If you create your project do not botter direct where are the pictures.

In VS.net is also provided the setup and deployment projects.
Things as you now are asking are there done by default or by setting as you
wish.
(Normaly in the program folder).

I hope this helps,

Cor
Nov 15 '05 #3

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

Similar topics

6
by: S. David Rose | last post by:
Hello All! I am new to Python, and wanted to know if I might ask you a question regarding timing. I want a main loop which takes photos from 8 different web-cams, each can be addressed by...
2
by: Nat | last post by:
Hi there, I have code as following but it returns error Error Type: Microsoft VBScript compilation (0x800A03F6) Expected 'End' /urbisjhdintranet/metadata/resultList.asp, line 324 which is the...
0
by: Perttu Pulkkinen | last post by:
I am doing a news-oriented multiuser cms, where authors can design html-pages or plaintext-pages and then editor(s) accept them. Also they can load images, at least five - maybe. But I don't know...
5
by: Applebrown | last post by:
Hello, basically, I'm just learning intermediate CSS and trying to convert my old table webpage completely to CSS. Hoorah, right? Well, it's not quite going as planned. It's an extremely simple...
2
by: FrankStallone | last post by:
I am just getting started in XML and I made my first xml, dtd and xslt file and XML spy said they were all valid and they worked. This was the xslt doc that worked. <?xml version="1.0"...
2
by: sandman | last post by:
I created an ImageList in the .NET Designer. Now I can't figure out where the images are located. Where is all this stuff stored and how do I read it? (me personally, I mean -the computer is...
4
by: MC D | last post by:
I'm new to win forms programming, and am having a bit of trouble figuring out where to place images that will accompany the program. Do you place them in the bin directory?? What if you are making...
2
by: CK | last post by:
Hi all, I have a strange problem. I have a login.aspx web form i use for logging in to my app. It uses the asp:LoginView and asp:Login controls respectively. I have this strange bug i can not...
8
by: Lloyd Sheen | last post by:
I have a list of JPG's which are found in a SQL Server database. When the page selects a certain piece of data it will refer to the file system (resident on IIS server with a virtual directory)...
4
by: John Kotuby | last post by:
Cleveland? Hi all, I am writing an ASP.NET 2.0 application in VB.NET. My boss doesn't like the fact that I still use either rectangular or the default browser buttons on my pages. He says it...
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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.