B
Beebs
I add an image list to a form, add a 256 color bmp that's 16x16
pixels, assign the imagelist to my toolbar, assign the image index to
my one toolbar button and when I open that form I get the following
error:
An unhandled exception of type 'System.NullReferenceException'
occurred in System.Drawing.dll
in the windows designer code at this spot:
Me.tlbDrawing.ImageIndex = 0
'
'ImageList1
'
Me.ImageList1.Images.Add(CType(resources.GetObject("resource"),
System.Drawing.Image))
It's showing it on the last line, but the error may indeed be coming
in on the first line, either way, what's the deal...never had this
happen before when using an imagelist...can anyone figure this out???
pixels, assign the imagelist to my toolbar, assign the image index to
my one toolbar button and when I open that form I get the following
error:
An unhandled exception of type 'System.NullReferenceException'
occurred in System.Drawing.dll
in the windows designer code at this spot:
Me.tlbDrawing.ImageIndex = 0
'
'ImageList1
'
Me.ImageList1.Images.Add(CType(resources.GetObject("resource"),
System.Drawing.Image))
It's showing it on the last line, but the error may indeed be coming
in on the first line, either way, what's the deal...never had this
happen before when using an imagelist...can anyone figure this out???