How to change the Wallpaper programmatically?

  • Thread starter Thread starter Ishiirou
  • Start date Start date
I

Ishiirou

Guest
I have a lot of wallpapers I have in several sub directories of a main wallpaper directory.

Sadly in Windows 7 if you select a slideshow it only uses the images in the current directory and no images in sub directories.

Now my idea was to write a program that lets me select multiple directories and create a new temp directory with all the images in these, set windows to use a slideshow of all these images and then delete the temp directory.

Windows somehow caches the current wallpaper image even if the original file is deleted, I assume that doesn't happen if its a slideshow with many images?

Now the question is, how do I set a wallpaper slideshow in Windows 7 with C#?

And googling this I found a lot of people saying only bmp or only bmp and jpg files are supported, is this true? If so, how can that be when I can only use png images if I manually set a wallpaper?

Continue reading...
 
Back
Top