Connecting Tech Pros Worldwide Help | Site Map

SavePicture problem

  #1  
Old January 4th, 2007, 05:25 PM
313 Games
Guest
 
Posts: n/a
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?


  #2  
Old January 4th, 2007, 05:35 PM
Dean Earley
Guest
 
Posts: n/a

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
  #3  
Old January 4th, 2007, 05:35 PM
Rick Rothstein \(MVP - VB\)
Guest
 
Posts: n/a

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


  #4  
Old January 4th, 2007, 05:45 PM
313 Games
Guest
 
Posts: n/a

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
>

  #5  
Old January 4th, 2007, 05:45 PM
313 Games
Guest
 
Posts: n/a

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 Threads
Thread Thread Starter Forum Replies Last Post
webcam problem patr0805 answers 11 March 3rd, 2008 01:28 AM
how do I save images to SQL DB? =?Utf-8?B?Um9nZWxpbw==?= answers 3 August 4th, 2007 12:45 AM
Extracting icons from command buttons Rad Daddy answers 1 October 24th, 2006 03:35 AM
Saving Altered Bitmap Carl answers 4 July 17th, 2005 10:22 PM