Re: InvalidcastException in BitMap call
- From: "Simon Hart" <srhartone@xxxxxxxxx>
- Date: Wed, 5 Jul 2006 09:29:10 +0100
You need a slash in front of program files ie:
bmp = New BitMap("\Program Files\1.png")
Regards
Simon.
"HW" <hw@xxxxxxxxxxx> wrote in message
news:e02sxW2nGHA.1808@xxxxxxxxxxxxxxxxxxxxxxx
Hi, I'm creating BitMap as follows
bmp = New BitMap("Program Files\1.png")
This is causing a Invalid cast Exception, call stack suggests its in the
_InitFromStream method. What is wrong with the above???
.
- Follow-Ups:
- References:
- InvalidcastException in BitMap call
- From: HW
- InvalidcastException in BitMap call
- Prev by Date: Comodo code signing certs
- Next by Date: Re: Communication
- Previous by thread: InvalidcastException in BitMap call
- Next by thread: Re: InvalidcastException in BitMap call
- Index(es):