Results 1 to 4 of 4

Thread: Copy File1 onto File2?

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2001
    Location
    Berlin / Germany
    Posts
    5

    Question Copy File1 onto File2?

    Hi There,

    i've got this problem:

    I want to copy the small file1.bmp onto the bigger file2.bmp (a wallpaper) with VB... i think the API way is the right... but i don't know how to do that! Can somebody help me ??? plz....


    Thx for any help
    David Windisch
    [email protected]

  2. #2
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Do you just want to overwrite the file ?
    If so then :

    VB Code:
    1. FileCopy "c:\file1.bmp", "c:\file2.bmp"
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2001
    Location
    Berlin / Germany
    Posts
    5

    i don't want to overwrite

    ...

    well, i don't want to overwrite this File.
    I want the 2 Files become 1 File. The bigger File should be the background and the smaller, therefor the foreground
    David Windisch
    [email protected]

  4. #4
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Well in that case, you could perhaps load the larger picture into a picturebox with its AutoSize property set to True, and then use BitBlt to paint the smaller picture into the middle of the larger one. Then you could try saving that picture using the SavePicture statement.
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

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