Click here to Skip to main content
15,906,574 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi everybody,

How do I find the user's wallpaper image without PrintScreen under WPF and also get path of the image from hard disk that setting to the current user desktop image?

Thanks in advance ;)
Posted
Updated 1-Nov-11 2:14am
v2

I don't believe WPF offers a way to manage the wallpaper, but you can get/set the location of the wallpaper image in the registry at:

HKEY_CURRENT_USER\Control Panel\Desktop\Wallpaper

To manipulate the registry programatically, see Microsoft.Win32.Registry[^]
 
Share this answer
 
Comments
hzawary 1-Nov-11 8:27am    
Very thanks Yvan Rodrigues;) for your answer and edited question me!
hzawary 1-Nov-11 8:38am    
My 5!
the wallpapers are set inside the system registry, I hope the given link will help you a little...


http://stackoverflow.com/questions/7779491/changing-wallpaper-with-a-batch-file-on-program-close-possible[^]

do google for how to read/write system registry, its very simple...

mark as answer if helps you solve your problem...
 
Share this answer
 
Comments
hzawary 1-Nov-11 8:34am    
And thanks too "Pandya Anil691", But before this I didn't think about registry;)
hzawary 1-Nov-11 8:37am    
My 5!
Pandya Anil 1-Nov-11 9:33am    
you are welcome... its feels pleasure if my solution helps someone thanks for rating !! hzawary!!!
 
Share this answer
 
Comments
hzawary 1-Nov-11 8:37am    
My 5, excellent;)
UJimbo 1-Nov-11 8:48am    
Thank you, glad we could help
hzawary 1-Nov-11 9:23am    
Thanks again, this program solved problem me quickly;)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900