Link to home
Start Free TrialLog in
Avatar of Pomarius
Pomarius

asked on

VB .Net -- Changing the desktop background image

Tyring to change the desktop image from a VB app.

I'd like to grab an image (.JPG) from the web (specific image) and make that image the windows desktop image.  Ideally the program would run in the background and update the image based on a timer.

I found code for W95 but it doesn't seem to work with 2000/XP.

Thanks!
ASKER CERTIFIED SOLUTION
Avatar of venyon
venyon

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Pomarius
Pomarius

ASKER

Thanks Venyon-

Doesn't appear the compiler likes the "MarshalAs" command...I get a "type undefined" error.

-P
UPDATE

Removing the MarshalAs command seemed to correct that problem as I am able to select image files that are in the windows dir as my desktop wallpaper.

So, the question now is how to get the image from the net (I have the URL to the image) into the windows dir so the setdesktop command can change the image file.
Avatar of Bob Learned
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Answered by venyon

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

TheLearnedOne
EE Cleanup Volunteer