Jump to content
Tuts 4 You

C# - ImageList - how to include it in MainForm resource ???


CodeExplorer

Recommended Posts

Posted (edited)

So I've added an ImageList to MainForm but unfortunately in compiled exe is not under MainForm resource but as an separated resource called imageListTreeView.ImageStream,
when I try to run the program it complain about resource not being found:
this.imageListTreeView.ImageStream = (ImageListStreamer)componentResourceManager.GetObject("imageListTreeView.ImageStream");

How to fix this problem?
 

Edited by CodeExplorer
  • The title was changed to C# - ImageList - how to include it in MainForm resource ???
Posted

It's hard to guess without having something to look at. Post the project (or DM if it's private)

Posted (edited)

I resolved my problems.
I simply added again all images and now all works ok, and now ImageList is included in MainForm.
To be frankly I have no idea on why this error came from first place.
 

Edited by CodeExplorer

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...