CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1

    SavePicture errors!?!

    I am trying to use the savepicture statement to save a picture to file but vb is giving me and invalid property value error. Does anyone have any clues as to why this would happen??? Here is the line of code....

    SavePicture LiMbobtn(i).Picture, "Test.bmp"

    I dont know why it isnt working. Thank you.

    FaRd0wN


  2. #2
    Join Date
    Sep 1999
    Location
    Red Wing, MN USA
    Posts
    312

    Re: SavePicture errors!?!

    You would get that error if the format of the "Picture" handle was invalid (Zero) , i.e. Empty.

    You could check the Picture handle first, i.e.If LiMbobtn(i).Picture then SavePicture LiMbobtn(i).Picture, "Test.bmp"



    Alternatively always save the "Image" instead, i.e.SavePicture LiMbobtn(i).Image, "Test.bmp"



    Aaron Young
    Analyst Programmer
    ajyoung@charter.net
    Certified AllExperts Expert: http://www.allexperts.com/displayExp...p?Expert=11884
    Aaron Young
    Senior Programmer Analyst (Red Wing Software)
    Certified AllExperts Expert

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured