Setting walpaper

Hello,

i was wondering if there is a easy way to set the walpaper in vb on windows xp and windows 2000 to a bmp or a jpg or well any other type of image supported by windows

i know there a lots of resourses about seting the wallpaper to a bmp but if anyone know of away to set it to a jpg i would be very greatful

Thanks




Answer this question

Setting walpaper

  • WTHUGHES

    There are api calls to set it. If you use a jpg, it is converted to a bmp by windows anyway.
    see here:
    http://www.vbforums.com/showthread.php t=354533&highlight=wallpaper

  • soccerjoe5

    I'm not sure if this is what you're looking for, but you can change the file format of any picture as follows:

    img.Save(picturesPath, System.Drawing.Imaging.ImageFormat.Jpeg)

    Hope that helps,
    Yun


  • Setting walpaper