Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.visual.basic    |    MS Visual Basic discussions, NOT dot-net    |    10,840 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 10,331 of 10,840    |
|    Roger Vale to All    |
|    Compile Errors    |
|    29 Dec 06 10:40:18    |
      From: roger.vale@btinternet.com              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              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca