Hello moondaddy,
class MyImageLists
{
private static ImageList imageList1 = new ImageList();
static MyImageLists()
{
// code to init imageList1
}
public static ImageList ImageList1 { get { return imageList1; } }
}
Then in your form, you can do (for example):
myListView.ImageList = MyImageLists.ImageList1;
I use a similar technique for all of my shared images. 1 Images class with
static accessors to the images. Works like a champ. :=)
--
Matt Berther
http://www.mattberther.com
> I'm writing an app in vb.net 1.1 and would like to share one common
> imagelist amongst many forms. Is there a way to do this? Perhaps put
[quoted text clipped - 5 lines]
>
> Thanks.
moondaddy - 06 Dec 2004 20:11 GMT
Thanks! Look like what I was looking for.

Signature
moondaddy@nospam.com
> Hello moondaddy,
>
[quoted text clipped - 27 lines]
>>
>> Thanks.