Problems with ImageList Control

A

Alan

I am developing a Windows Form application and I am experiencing issues with the following line of code.....
Me.ImageListCRSGroupImages.ImageStream = CType(resources.GetObject("ImageListCRSGroupImages.ImageStream"), System.Windows.Forms.ImageListStreamer)

The type of error I get is a System.TypeInvocationException

Can anyone help please?
 
H

Herfried K. Wagner

Hello,

Alan said:
I am developing a Windows Form application and I am
experiencing issues with the following line of code.....
Me.ImageListCRSGroupImages.ImageStream =
CType(resources.GetObject("ImageListCRSGroupImages.
ImageStream"), System.Windows.Forms.ImageListStreamer)
The type of error I get is a System.TypeInvocationException

Do you use an application manifest (in order to enable Visual Styles
within the IDE) for devenv.exe?

Regards,
Herfried K. Wagner
 

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