Categories

Thousands of experts bid on your personal project at ScriptLance.com

Change the windows wallpaper

This Visual Basic example will allow you to change the desktop wallpaper. Change the yourbitmap.bmp to an image on your system

Declare Function SystemParametersInfo Lib "user32" Alias "SystemParametersInfoA" (ByVal uAction As Long, ByVal uParam As Long, ByVal lpvParam As Any, ByVal fuWinIni As Long) As Long

Public Const SPI_SETDESKWALLPAPER = 20

Dim lngSuccess As Long
Dim strBitmapImage As String

strBitmapImage = "yourbitmap.bmp"
lngSuccess = SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, strBitmapImage, 0)

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.

You must be logged in to post a comment.