Please help me with ImageList Exceptions - mscorlib.dll

G

Guest

Everytime I Use ImageList Control to add Image that has more than 256Bits
colours and then an Exception throws at the line:

this.imageList1.ImageStream =
((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));


All I have to do is create new Windows Application Project, then add an
ImageList Control to the form and then add an image likes 16bit colors to
Imagelist. Then Run.

When Run, an Run-time exception has thrown, the contain of exception:

An unhandled exception of type 'System.Reflection.TargetInvocationException'
occurred in mscorlib.dll

Additional information: Exception has been thrown by the target of an
invocation.


After that, every time I try to run Search in Windows Explorer, it returs
errror:

Unexpected Errors
Action could not be completed.

Anyone can show me how to solve this problem. I'm in hurry

I'm using Windows Server 2003, Visual Studio .NET 2003 and Framework version
v1.1.4322.

Thanks a lot.
 
G

Guest

Typically, if ya successfully added the image to the image list in vs IDE, it
wont cause any trouble like that.

try to change the
ColorDepth
property to a higher depth

cheers
 
G

Guest

Yeah, I had change ColorDepth to 16 Bits and 32bits, both don't work.

I had tried to re-install the VSS .NET, but It can not solve the problem.

Any one has any other idea?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top