By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,682 Members | 1,368 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,682 IT Pros & Developers. It's quick & easy.

ImageList error

P: n/a
Hello,

When I add an imagelist to my app, and add some images to the imagelist, I
get the following error when trying to build the solution:

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

....on this line:

Me.ImageList1.ImageStream =
CType(resources.GetObject("ImageList1.ImageStream" )_,
System.Windows.Forms.ImageListStreamer)
This happens every time I create a new project. I use the some images in
other projects, so they should be ok.

Does someone know how to make this work again?

Thanks in advance!

--
Lasse
Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
* "Lasse Eskildsen" <Le****@DELETEwebspeed.dk> scripsit:
When I add an imagelist to my app, and add some images to the imagelist, I
get the following error when trying to build the solution:

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

...on this line:

Me.ImageList1.ImageStream =
CType(resources.GetObject("ImageList1.ImageStream" )_,
System.Windows.Forms.ImageListStreamer)
This happens every time I create a new project. I use the some images in
other projects, so they should be ok.


If you are using an application manifest with "devenv.exe" (for enabling
Visual Styles), remove it.

--
Herfried K. Wagner
MVP VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.