S
STI_PDA
I have an application that runs perfectly until I try it
on a new device (iPAQ rx3700 which is using Second
Edition of Windows Mobile 2003). I've traced it to the
part of code that is adding images to my imagelist.
(this imagelist is attached to my toolbar)
System.IO.Stream st = System.IO.File.Open(mIconPath +
"Syncon.ico",System.IO.FileMode.Open);
System.Drawing.Icon icon = new System.Drawing.Icon(st);
imageList1.Images.Add(icon); <-- error on this line
The error information I received is:
System.InvalidCastException; System.Drawing.Dll.
I'm using CE .NET v1.1
on a new device (iPAQ rx3700 which is using Second
Edition of Windows Mobile 2003). I've traced it to the
part of code that is adding images to my imagelist.
(this imagelist is attached to my toolbar)
System.IO.Stream st = System.IO.File.Open(mIconPath +
"Syncon.ico",System.IO.FileMode.Open);
System.Drawing.Icon icon = new System.Drawing.Icon(st);
imageList1.Images.Add(icon); <-- error on this line
The error information I received is:
System.InvalidCastException; System.Drawing.Dll.
I'm using CE .NET v1.1