Connecting Tech Pros Worldwide Help | Site Map

SavePicture problem

313 Games
Guest
 
Posts: n/a
#1: Jan 4 '07
hey,

i need some help with the savepicture function. i do not have an help of
vb6, so i might ask it here.

when i call the function like this:

SavePicture Picture1.Picture, "c:\BeeldWebCam.bmp"

it will return in an error like this:

Run-time error '380':

Invalid property value

What im doing wrong?


Dean Earley
Guest
 
Posts: n/a
#2: Jan 4 '07

re: SavePicture problem


313 Games wrote:
Quote:
hey,
>
i need some help with the savepicture function. i do not have an help of
vb6, so i might ask it here.
>
when i call the function like this:
>
SavePicture Picture1.Picture, "c:\BeeldWebCam.bmp"
>
it will return in an error like this:
>
Run-time error '380':
>
Invalid property value
>
What im doing wrong?
If that is failing then no *picture* has been loaded into that picturebox.
How is the image getting into that picturebox?
If it's being drawn by VB, then you may be able to try saving .Image
property instead.

--
Dean Earley (dean.earley@icode.co.uk)
i-Catcher Development Team

iCode Systems
Rick Rothstein \(MVP - VB\)
Guest
 
Posts: n/a
#3: Jan 4 '07

re: SavePicture problem


i need some help with the savepicture function. i do not have an help of
Quote:
vb6, so i might ask it here.
>
when i call the function like this:
>
SavePicture Picture1.Picture, "c:\BeeldWebCam.bmp"
>
it will return in an error like this:
>
Run-time error '380':
>
Invalid property value
Use the Image property instead of the Picture property...

SavePicture Picture1.Image, "c:\BeeldWebCam.bmp"

Rick


313 Games
Guest
 
Posts: n/a
#4: Jan 4 '07

re: SavePicture problem


thanks, this solved my problem.

"Rick Rothstein (MVP - VB)" <rickNOSPAMnews@NOSPAMcomcast.netschreef in
bericht news:iZ-dnSc8nZrYpwDYnZ2dnUVZ_ruknZ2d@comcast.com...
Quote:
Quote:
>i need some help with the savepicture function. i do not have an help of
>vb6, so i might ask it here.
>>
>when i call the function like this:
>>
> SavePicture Picture1.Picture, "c:\BeeldWebCam.bmp"
>>
>it will return in an error like this:
>>
> Run-time error '380':
>>
> Invalid property value
>
Use the Image property instead of the Picture property...
>
SavePicture Picture1.Image, "c:\BeeldWebCam.bmp"
>
Rick
>

313 Games
Guest
 
Posts: n/a
#5: Jan 4 '07

re: SavePicture problem


rick has already solved my problem ;-) but thanks anyways :-) this is more
information than rick gave me.

"Dean Earley" <dean.earley@icode.co.ukschreef in bericht
news:459d39e5$0$2442$db0fefd9@news.zen.co.uk...
Quote:
313 Games wrote:
Quote:
>hey,
>>
>i need some help with the savepicture function. i do not have an help of
>vb6, so i might ask it here.
>>
>when i call the function like this:
>>
> SavePicture Picture1.Picture, "c:\BeeldWebCam.bmp"
>>
>it will return in an error like this:
>>
> Run-time error '380':
>>
> Invalid property value
>>
>What im doing wrong?
>
If that is failing then no *picture* has been loaded into that picturebox.
How is the image getting into that picturebox?
If it's being drawn by VB, then you may be able to try saving .Image
property instead.
>
--
Dean Earley (dean.earley@icode.co.uk)
i-Catcher Development Team
>
iCode Systems

Closed Thread


Similar Visual Basic 4 / 5 / 6 bytes