Connecting Tech Pros Worldwide Help | Site Map

Compile Errors

  #1  
Old December 29th, 2006, 10:45 AM
Roger Vale
Guest
 
Posts: n/a
Hi all

Visual studio 2005
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

  #2  
Old December 29th, 2006, 01:05 PM
Jan Hyde
Guest
 
Posts: n/a

re: Compile Errors


"Roger Vale" <roger.vale@btinternet.com>'s wild thoughts
were released on Fri, 29 Dec 2006 10:40:18 -0000 bearing the
following fruit:
Quote:
>Hi all
>
>Visual studio 2005
You need to ask in a 'dotnet' group, this group is for VB
'classic'

J
Quote:
>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

Jan Hyde (VB MVP)

--
Show me a piano falling down a mineshaft and I'll show you A-flat minor

(Karen Mascew)

Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compile errors after converting to a Web Application Project from =?Utf-8?B?SG93YXJkIFBpbnNsZXk=?= answers 1 November 22nd, 2008 12:55 AM
Compile errors in VS.Net 2003 Ravi Chaudhary answers 1 November 22nd, 2005 01:49 PM
Compile errors in VS.Net 2003 - VB.Net solution Ravi Chaudhary answers 1 November 21st, 2005 01:37 AM
Compile errors when upgrading to VS.NET 2003 Ray Wampler answers 1 November 20th, 2005 01:13 AM
Compile errors in VS.Net 2003 Ravi Chaudhary answers 1 July 21st, 2005 05:41 PM