Please help me with ImageList Exceptions - mscorlib.dll

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Minh

    Please help me with ImageList Exceptions - mscorlib.dll

    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.Window s.Forms.ImageLi stStreamer)(res ources.GetObjec t("imageList1.I mageStream")));


    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.Reflect ion.TargetInvoc ationException'
    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.

  • Ashura

    #2
    RE: Please help me with ImageList Exceptions - mscorlib.dll

    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

    Comment

    • Minh

      #3
      RE: Please help me with ImageList Exceptions - mscorlib.dll

      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?

      "Ashura" wrote:
      [color=blue]
      > 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[/color]

      Comment

      Working...