Imagelist error (resolved)
i've just been playing around with C#, and i tried adding a toolbar with an imagelist to a form, but it's throwing up this error:
An unhandled exception of type
'System.Reflection.TargetInvocationException' occured in mscorlib.dll
Additional information: Exception has been thrown by the target of an invocation.
on this line:
Code:
this.imlMenuIcons.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imlMenuIcons.ImageStream")));
all i did was add a toolbar, added a button to it, added an imagelist, added an image to it, then associated that image with the button. it's all done at design time, so i didn't write any of the code.
it'll compile ok, but when i run it (in the IDE or compiled) it throws that error. any ideas what's wrong?