Failed to load ImageList

  • Thread starter Thread starter Martin Robins
  • Start date Start date
M

Martin Robins

I have a project that will not run. It runs fine on another machine, but
when I copied it across from that machine to another (as source code) and
recompiled, it issues an error (see above).

The code lne in question is

this.imageListToolBar.ImageStream =
((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageListTool
Bar.ImageStream")));

within the Windows Forms Designer generated code.

I have tried deleting the .resx and then recreating but to no avail!

The application continues to compile on the first machine!

I have subsequently put together a simple form with a single ImageList
containing a single image, a toolbar with a single button and then allocated
the image to the button. This will not run either instead giving the same
message.

Has anybody else seen this or am I spending the weekend re-loading my
machine?

Cheers.
 
Hello,

Martin Robins said:
I have a project that will not run. It runs fine on another
machine, but when I copied it across from that machine to
another (as source code) and recompiled, it issues an error
(see above).

The code lne in question is

this.imageListToolBar.ImageStream =
((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageListTool
Bar.ImageStream")));

within the Windows Forms Designer generated code.

Are you using a manifest file with "devenv.exe" in order to enable Visual
Styles in the IDE?
 
Yes, but I also have this on the machine on which it works, and I have had
this working on the machine in question in the past.
 
Hello,

Martin Robins said:
Yes, but I also have this on the machine on which it works,
and I have had this working on the machine in question in the past.

Projects which were created on a machine using a manifest for the IDE won't
work on Windows 98 and will cause problems if the projects are opened in a
system without IDE manifest.
 
Thanks for the pointer.

Unfortunately, I took the decision to re-format my HDD and start again
anyway. Admittedly additional time out, but worth it in the long run.
Installed Office 2003 at the same time!
 
Back
Top