c# - "Loading of the ImageList did not succeed" exception occured -


i having issue on statement below while loading imagestream.

this.imagelist1.imagestream = ((system.windows.forms.imageliststreamer)(resources.getobject("imagelist1.images‌​tream")));  

exception:

system.reflection.targetinvocationexception: exception has been thrown target of invocation. ---> system.invalidoperationexception: loading of imagelist did not succeed

when browsed , saw imagestream object null. has thrown exception above relating "mscorelib" too.

any suggestions , comments appreciated

i dont understand why using imagestream

i prefer use

himagelist imagelist_create(   int cx,   int cy,   uint flags,   int cinitial,   int cgrow ); 

and can allocate images right before load.


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -