Results 1 to 2 of 2

Thread: Wallpaper and jpg

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2000
    Posts
    10

    Question

    Im trying to make a command button that makes the wallpaper the one i have chosen in my program. I have found some code for how to do this but i think it only supports .bmp and not .jpg

    Do anyone know the code so i can set .jpg wallpapers from my command button in vb?

  2. #2
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    I really don't have any code to make what you want. I've been searching for it this morning 'cos I wanted to do the same. However, I can tell you how I managed to set the wallpaper I want. It's simple, but tricky. I load the jpg I want in a picturebox, saves it to a bmp and then I use the same code -I guess- you found to set the wallpaper. It would be something like this:

    picture1.picture = loadpicture("C:\My Documents\MyJPG.jpg")
    savepicture picture1,"C:\My documents\MyBMP.bmp"

    then you call to the function that sets the wallpaper, asking the "MyBMP.bmp" file to be set as wallpaper.

    Hope this helps you.


    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

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