473,320 Members | 1,945 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,320 software developers and data experts.

Images that are used alot

Hi Guys

I have set images which I use all the time in my application, in different
forms, however if I put each of these images as backgrounds they are going
to take up a lot of space is there a way to globaly reference these images
so they take up less space?

Thanks Mike.

Nov 21 '05 #1
4 946
Michael,

Did you already tried to set them in an imagelist in a shared class?

http://msdn.microsoft.com/library/de...classtopic.asp

I hope this helps?

Cor

"Michael Turner"
Hi Guys

I have set images which I use all the time in my application, in different
forms, however if I put each of these images as backgrounds they are going
to take up a lot of space is there a way to globaly reference these images
so they take up less space?

Thanks Mike.

Nov 21 '05 #2
"Michael Turner" <fi*****@m-turner.co.uk> schrieb:
I have set images which I use all the time in my application, in different
forms, however if I put each of these images as backgrounds they are going
to take up a lot of space is there a way to globaly reference these images
so they take up less space?


You can set up an imagelist that holds the images and can be accessed by all
classes, or add the image as a resource, load it once and then reuse it on
more than one place:

<URL:http://www.google.de/groups?selm=OIoCi89qEHA.3988%40tk2msftngp13.phx.gb l>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 21 '05 #3
Hi

I'm using these images as backgrounds to panels, I cant seem to set an
imagelist image in the properties is there another way to do it?

Mike.
"Cor Ligthert" <no************@planet.nl> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Michael,

Did you already tried to set them in an imagelist in a shared class?

http://msdn.microsoft.com/library/de...classtopic.asp
I hope this helps?

Cor

"Michael Turner"
Hi Guys

I have set images which I use all the time in my application, in different forms, however if I put each of these images as backgrounds they are going to take up a lot of space is there a way to globaly reference these images so they take up less space?

Thanks Mike.



Nov 21 '05 #4
Michael,

The imagelist will fits only images which are maximum 256 by 256 so will
probably not help you for your panels. You have to make an resx file from
your pictures.
Maybe there is a better method however a very easy one is this.

Add a component as item (Solution explorerer, add item component) name it by
instance myImages.vb
Drag on that as much panels as you need pictures and set the background for
every panel, than you can do in your programs

\\\
Private Sub Form1_Load(ByVal sender As Object, _
ByVal e As System.EventArgs) Handles MyBase.Load
Dim myIm As New MyImages
Me.Panel1.BackgroundImage = myIm.Panel1.BackgroundImage
End Sub
///

I hope this helps?

Cor

"Michael Turner" <fi*****@m-turner.co.uk>
Hi

I'm using these images as backgrounds to panels, I cant seem to set an
imagelist image in the properties is there another way to do it?

Mike.
"Cor Ligthert" <no************@planet.nl> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Michael,

Did you already tried to set them in an imagelist in a shared class?

http://msdn.microsoft.com/library/de...classtopic.asp

I hope this helps?

Cor

"Michael Turner"
> Hi Guys
>
> I have set images which I use all the time in my application, in different > forms, however if I put each of these images as backgrounds they are going > to take up a lot of space is there a way to globaly reference these images > so they take up less space?
>
> Thanks Mike.
>
>
>



Nov 21 '05 #5

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

Similar topics

7
by: Benoit St-Jean | last post by:
I am looking at options/ways to store 12 million gif/jpg images in a database. Either we store a link to the file or we store the image itself in the database. Images will range from 4k to 35k in...
1
by: Spike | last post by:
Hello! Im going to make a javascript for changing alot of images. But im not sure how to do it., where to start.. Ok, first.. this is the isue. I have 3 images(I call them 1a-3a). when u...
1
by: Zeroeffect | last post by:
Hello! I have a database with alot of embedded images. The reason for having the images embedded is security. My problem is that it works fine on my computer, but not on my clients computer....
1
by: Mamatha | last post by:
Hi I am developing a small application to capture a record a video file through webcam in C#.NET. In this application i created a JPEG images for every slide,means every JPEG image was treated...
0
by: Ken Dopierala Jr. | last post by:
Hi, I know this post will be considered off-topic. There are a lot of good coders in these groups and I'm hoping someone can help me out. This is what I'm working on. I used to use the...
0
by: Ken Ingram | last post by:
I have been reading through all the MSDN docs on using the new Visual Studio Tools for Microsoft Office Systems and have alot of things working in my project. One thing I am stuggling with is how...
5
by: randomtalk | last post by:
hi, i want to automate some tasks of gathering photos from web, i tried urllib/urllib2, both ended up without much success (saved gifs with only a border, nothing else).. the code i used was: ...
15
by: Jameson | last post by:
Happy New Year, Everyone! I am trying to figure out how to display a bunch of images (mainly JPEGs, but possibly a few GIFs and PNGs as well) that are stored in a local directory on the system....
61
by: phil-news-nospam | last post by:
Why does SVG need a different tag than other images? IMHO, SVG should be implemented as an image type just like any other image type, allowing it to work with <img> tags, and ... here is the...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.