Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

Making a Program in VB that changes your desktop on startup


ghost's Avatar
0 0

how would i go about making a program that changed my desktop image automatically from a specific folder?


ghost's Avatar
0 0
Const SPI_SETDESKWALLPAPER = 20

Private Sub Form_Load()
Dim lngDesktop As Long, strImage As String
strImage = "c:\blabla.jpg"
lngSuccess = SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, strImage, 0)
End Sub```

Then put this prog in taskmanager (startup)