Go Back   Forum Care Forums > Development Reference Area > Visual Basic

Reply
 
LinkBack Thread Tools Display Modes
SavePicture problem
Old
  (#1)
313 Games
Guest
 
Posts: n/a
Default SavePicture problem - 06-04-2007, 10:34 AM

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?


   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Re: SavePicture problem
Old
  (#2)
Dean Earley
Guest
 
Posts: n/a
Default Re: SavePicture problem - 06-04-2007, 10:34 AM

313 Games wrote:
> 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 (EMAIL REMOVED)
i-Catcher Development Team

iCode Systems
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: SavePicture problem
Old
  (#3)
Rick Rothstein \(MVP - VB\)
Guest
 
Posts: n/a
Default Re: SavePicture problem - 06-04-2007, 10:34 AM

> 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


   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: SavePicture problem
Old
  (#4)
313 Games
Guest
 
Posts: n/a
Default Re: SavePicture problem - 06-04-2007, 10:34 AM

thanks, this solved my problem.

"Rick Rothstein (MVP - VB)" <EMAIL REMOVED> schreef in
bericht news:iZ-EMAIL REMOVED...
>> 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
>



   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: SavePicture problem
Old
  (#5)
313 Games
Guest
 
Posts: n/a
Default Re: SavePicture problem - 06-04-2007, 10:34 AM

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

"Dean Earley" <EMAIL REMOVED> schreef in bericht
news:459d39e5$0$2442$EMAIL REMOVED...
> 313 Games wrote:
>> 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 (EMAIL REMOVED)
> i-Catcher Development Team
>
> iCode Systems



   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Contact Us - Forum Care Forums - Archive - Top