> Hi,
> I have .dll with Form and ImageList component,
[quoted text clipped - 7 lines]
> at line:
> this.imglToolBar.ImageStream =
((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imglToolBar.I
> mageStream")));
>
[quoted text clipped - 3 lines]
>
> pawel
Those kind of errors are difficult to troubleshoot.
Put a try/catch around the code which makes the instance, and examine the
InnerException property of the TargetInvocationException. It should lead
you to a better description. My guess is that your GetObject call is
returning Null for some reason, and the cast is failing.
Best Regards,
Andy
Pawe? Skowron - 20 Aug 2004 17:27 GMT
Any other suggestions?
> > Hi,
> > I have .dll with Form and ImageList component,
[quoted text clipped - 8 lines]
> > at line:
> > this.imglToolBar.ImageStream =
((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imglToolBar.I
> > mageStream")));
> >
[quoted text clipped - 14 lines]
>
> Andy
Andy Becker - 20 Aug 2004 23:37 GMT
> Any other suggestions?
None from me. Did you try the InnerException thing, and not get any
meaningful information?
Best Regards,
Andy