C
Chuck
When ever I try to implement an ImageList, I always get an exception when
the application runs. The ImageList doesn't even have to be used by
anything. An empty ImageList doesn't throw!
The following exception is thrown by the following code.
*****
'System.Reflection.TargetInvocationException' occurred in mscorlib.dll
Additional information: Exception has been thrown by the target of an
invocation.
*****
---code----
....
private System.Windows.Forms.ImageList ilMainFrame;
....
private void InitializeComponent()
{
....
this.ilMainFrame.ImageStream =
((System.Windows.Forms.ImageListStreamer)(resources.GetObject
"ilMainFrame.ImageStream")));
....
}
....
The resource file the line for the iMainFrame.ImageStream looks like:
name value comment type
mimetype
ilMainFrame.ImageStream (null) (null)
application/x-microsoft.net.object.binary.base64
The mime coded image is in the .resx file. The element looks like:
<data name="ilMainFrame.ImageStream"
mimetype="application/x-microsoft.net.object.binary.base64">
<value>
.....
</value>
</data>
I am running VS 2003 on windows XP pro.
I have looked through MSDN, but no help.
If anyone has an answer please tell me, before I have to phone Microsoft
($$$$).
Chuck
the application runs. The ImageList doesn't even have to be used by
anything. An empty ImageList doesn't throw!
The following exception is thrown by the following code.
*****
'System.Reflection.TargetInvocationException' occurred in mscorlib.dll
Additional information: Exception has been thrown by the target of an
invocation.
*****
---code----
....
private System.Windows.Forms.ImageList ilMainFrame;
....
private void InitializeComponent()
{
....
this.ilMainFrame.ImageStream =
((System.Windows.Forms.ImageListStreamer)(resources.GetObject
"ilMainFrame.ImageStream")));
....
}
....
The resource file the line for the iMainFrame.ImageStream looks like:
name value comment type
mimetype
ilMainFrame.ImageStream (null) (null)
application/x-microsoft.net.object.binary.base64
The mime coded image is in the .resx file. The element looks like:
<data name="ilMainFrame.ImageStream"
mimetype="application/x-microsoft.net.object.binary.base64">
<value>
.....
</value>
</data>
I am running VS 2003 on windows XP pro.
I have looked through MSDN, but no help.
If anyone has an answer please tell me, before I have to phone Microsoft
($$$$).
Chuck