R
Roger Vale
Hi all
Visual studio 2005
Visual Basic
windows mobile application
I am getting this from the imediate window A first chance exception of type
'System.InvalidCastException' occurred in System.Drawing.dll
Now the program still runs but this error seems to appear every time i swap
an image from a file
Code i am using is as follows
Dim leftImage As Bitmap
leftImage = New Bitmap(boardImagesPath +
CStr(boardPositionP1 - 1) + ".jpg")
leftPb.Image = leftImage
I dont know if this is enough information any help would be great
Thanks in advance
Roger
Visual studio 2005
Visual Basic
windows mobile application
I am getting this from the imediate window A first chance exception of type
'System.InvalidCastException' occurred in System.Drawing.dll
Now the program still runs but this error seems to appear every time i swap
an image from a file
Code i am using is as follows
Dim leftImage As Bitmap
leftImage = New Bitmap(boardImagesPath +
CStr(boardPositionP1 - 1) + ".jpg")
leftPb.Image = leftImage
I dont know if this is enough information any help would be great
Thanks in advance
Roger