Results 1 to 2 of 2

Thread: desktop themes

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2001
    Location
    india
    Posts
    7

    desktop themes

    i want to refresh desktop to change wallpaper ?
    acp

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    Try something along these lines:

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


    Dim ChangeIt As Long
    Dim Wallpaper As String

    'Replace 'c:\MyFile.bmp' with the name of your BMP File.
    Wallpaper = "c:\MyFile.bmp"

    ChangeIt = SystemParametersInfo(ByVal 20, vbnostring, ByVal Wallpaper, &H1)
    If ChangeIt = 0 Then
    MsgBox "Error changing wallpaper"
    Exit Sub
    End If

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width