Change desktop (jpeg) wallpaper in .net

AndyAlexander

Member
Joined
Jan 17, 2003
Messages
6
Im trying to set the wallpaper on my desktop using vb .net and just cannot seem to get it working. Ive looked at some code posted elsewhere for vb6 but this doesnt seem to work in .net. The function suggested is [SystemParametersInfo] but no luck as yet.

Any suggestions

TIA

Andy

PS Machine is W2k
 
If you post the code you are trying to convert here, we will try and help you.
 
Divil,

thanks for the reply.

I tried a different tack. Using the type lib from http://www.domaindlx.com/e_morcillo/scripts/type/default.asp I tried the IActiveDesktop interface to the active desktop. This lets me either enable the activedesktop and use a JPG, or use the normal desktop mode and a .bmp. Reading a document on the desktop properties it seems that to use a JPG you must have activedesktop enabled; hence my problem.

Thanks

Andy
 
Back
Top