Results 1 to 5 of 5

Thread: a simple question

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Sep 2000
    Posts
    20

    a simple question

    If I have a image in a picture box NOT loaded with Picture1.picture = Loadpicture("C:\Directory\Filename.bmp") I loaded the picture from the propierties of the picture box how can i save the image to a disk with other name?
    Here my code :
    Private sub Command1_Click
    Picture1.Picture = Picture1.Image
    SavePicture Picture1.Image, "C.\Windows\Escritorio\PRUEBA.bmp"
    End sub

    But when I click the Command Button I got the message
    "Path not found"
    How can I do that??
    Thanks
    Wolverine

  2. #2
    sunnyl
    Guest
    Try another directory when saving.

    I believe that it cannot save to a directory that doesn't exist.

  3. #3
    pjvdg
    Guest
    I don't know if you already noticed it but you typed:
    C.\
    Guess what this should be, C:\ maybe?

  4. #4
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Use:

    [code]
    Private Sub Command1_Click()
    Picture1.Picture = Picture1.Image
    MkDir "C:\Windows\Escritorio\PRUEBA.bmp"
    SavePicture Picture1.Image, "C:\Windows\Escritorio\PRUEBA.bmp"
    End Sub
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  5. #5
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Use:

    Code:
    Private Sub Command1_Click()
      Picture1.Picture = Picture1.Image 
      MkDir "C:\Windows\Escritorio\PRUEBA.bmp"
      SavePicture Picture1.Image, "C:\Windows\Escritorio\PRUEBA.bmp" 
    End Sub
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

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