Change desktop (jpeg) wallpaper in .net

AndyAlexander

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

Any suggestions

TIA

Andy

PS Machine is W2k
 
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