Broken ImageLists in every project?

  • Thread starter Thread starter Mitchell Vincent
  • Start date Start date
M

Mitchell Vincent

I've had this problem for a week, and it's just now getting to where I
can't work on a project because of it.

Every single project I load up in VS.NET 2003 that has an imagelist in
it gives me a compile error
"'System.Reflection.TargetInvocationException' occurred in mscorlib.dl"
on lines like "Me.imgAppointments.ImageStream =
CType(resources.GetObject("imgAppointments.ImageStream"),
System.Windows.Forms.ImageListStreamer)"

It seems the GetObject call is returning the error - but it does it
regardless of project and language!

Does anyone have any idea what I might have broken? I just installed
some of the N Software components, but I can't imagine those breaking
every imagelist!
 
Mitchell Vincent said:
Every single project I load up in VS.NET 2003 that has an imagelist in it
gives me a compile error "'System.Reflection.TargetInvocationException'
occurred in mscorlib.dl" on lines like "Me.imgAppointments.ImageStream =
CType(resources.GetObject("imgAppointments.ImageStream"),
System.Windows.Forms.ImageListStreamer)"

It seems the GetObject call is returning the error - but it does it
regardless of project and language!

Are you using a manifest file ("devenv.exe.manifest") with "devenv.exe" to
enable Windows XP Visual Styles within the IDE? If you are doing so, delete
the file and recreate the forms.
 
Back
Top