G
Guest
Is it possible to get C# to set a Jpeg as the wallpaper? I've been toying
around with a couple of things but the only way I can get to get C# to set a
wallpaper is by using the...
WinAPI.SystemParametersInfo(20, 0, file, 0x1 | 0x2 );
....method. But for this to work the file has to be a bmp. I then looked into
doing it via the registry and found on numerous sites that the key I have to
edit is...
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\
....which is all well and good but that key doesn't exist on my system (XP
Professional with SP1). Plus, I don't want to rely on a method that wont work
for everyone. I also believe that for the wallpaper to display the user has
to log out or restart the machine because Windows only looks for this key on
log on.
Another thing I'd be interested in too is that I want the wallpaper to
display tiled. Is it possible to explicitly say which style the wallapaper
should use?
Any ideas?
Darrell
around with a couple of things but the only way I can get to get C# to set a
wallpaper is by using the...
WinAPI.SystemParametersInfo(20, 0, file, 0x1 | 0x2 );
....method. But for this to work the file has to be a bmp. I then looked into
doing it via the registry and found on numerous sites that the key I have to
edit is...
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\
....which is all well and good but that key doesn't exist on my system (XP
Professional with SP1). Plus, I don't want to rely on a method that wont work
for everyone. I also believe that for the wallpaper to display the user has
to log out or restart the machine because Windows only looks for this key on
log on.
Another thing I'd be interested in too is that I want the wallpaper to
display tiled. Is it possible to explicitly say which style the wallapaper
should use?
Any ideas?
Darrell