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.
>
>
>