P
pasavvas.accounts
Hi all,
I am really frustrated with this.. I have been trying to sort this for
2 days now. Please help!
I am currently porting a .NET 1.1 project to 2.0
this a cf project which gets images dynamically from a resource file.
But under VS2005 I get the following error:
"Parameter must be of type Image"
here is the code:
Friend WithEvents imgStatus As System.Windows.Forms.ImageList
.....
Me.imgStatus.Images.Add(CType(resources.GetObject("resource"),
System.Drawing.Image))
Me.imgStatus.Images.Add(CType(resources.GetObject("resource1"),
System.Drawing.Image))
Me.imgStatus.Images.Add(CType(resources.GetObject("resource2"),
System.Drawing.Image))
Me.imgStatus.Images.Add(CType(resources.GetObject("resource3"),
System.Drawing.Image))
Me.imgStatus.ImageSize =
CType(resources.GetObject("imgStatus.ImageSize"), System.Drawing.Size)
and here is the resource entry:
<data name="resource3" type="System.Drawing.Bitmap, System.CF.Drawing,
Version=7.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
Qk12AgAAAAAAAHYAAAAoAAAAIAAAACAAAAABAAQAAAAAAAAAAAASCwAAEgsAABAAAAAQAAAASkpK/
2tr
a/+MjIz/ra2t/
8bGxv8AAP///////////////////////////////////////////////////////
xAA......ommited....MzMzMzMzMzMzMzMy
</value>
I am really frustrated with this.. I have been trying to sort this for
2 days now. Please help!
I am currently porting a .NET 1.1 project to 2.0
this a cf project which gets images dynamically from a resource file.
But under VS2005 I get the following error:
"Parameter must be of type Image"
here is the code:
Friend WithEvents imgStatus As System.Windows.Forms.ImageList
.....
Me.imgStatus.Images.Add(CType(resources.GetObject("resource"),
System.Drawing.Image))
Me.imgStatus.Images.Add(CType(resources.GetObject("resource1"),
System.Drawing.Image))
Me.imgStatus.Images.Add(CType(resources.GetObject("resource2"),
System.Drawing.Image))
Me.imgStatus.Images.Add(CType(resources.GetObject("resource3"),
System.Drawing.Image))
Me.imgStatus.ImageSize =
CType(resources.GetObject("imgStatus.ImageSize"), System.Drawing.Size)
and here is the resource entry:
<data name="resource3" type="System.Drawing.Bitmap, System.CF.Drawing,
Version=7.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
Qk12AgAAAAAAAHYAAAAoAAAAIAAAACAAAAABAAQAAAAAAAAAAAASCwAAEgsAABAAAAAQAAAASkpK/
2tr
a/+MjIz/ra2t/
8bGxv8AAP///////////////////////////////////////////////////////
xAA......ommited....MzMzMzMzMzMzMzMy
</value>