Desktop background
-
How can I set an image file as the user's desktop background image? Thanks :doh:
-
How can I set an image file as the user's desktop background image? Thanks :doh:
-
How can I set an image file as the user's desktop background image? Thanks :doh:
-
How can I set an image file as the user's desktop background image? Thanks :doh:
I'm not good at English. Look at this registry key HKEY_CURRENT_USER\Control Panel\Desktop You can find a lot of values in this key. The value named "WallPaper" contains path of the desktop background image. Some of other values describe how should the image be displayed. Use My.Computer.Registry.SetValue(keyname as String, valueName as String, value as Object) to change the registry. This is an example code
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
My.Computer.Registry.SetValue("HKEY_CURRENT_USER\Control Panel\Desktop", "WallPaper", "D:\1.jpg")
End SubWhen you click the Button1, it changes your desktop background image path to "D:\1.jpg" Good luck!
chilinhhacker
-
I'm not good at English. Look at this registry key HKEY_CURRENT_USER\Control Panel\Desktop You can find a lot of values in this key. The value named "WallPaper" contains path of the desktop background image. Some of other values describe how should the image be displayed. Use My.Computer.Registry.SetValue(keyname as String, valueName as String, value as Object) to change the registry. This is an example code
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
My.Computer.Registry.SetValue("HKEY_CURRENT_USER\Control Panel\Desktop", "WallPaper", "D:\1.jpg")
End SubWhen you click the Button1, it changes your desktop background image path to "D:\1.jpg" Good luck!
chilinhhacker
Thanks ;) ;) ;)