• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 401
  • Last Modified:

Make exe my wallpaper 1000pts !!!!

hi i need to make my exe which i made in vb.net to replace my wallpaper. (2k/XP)
0
Vartana
Asked:
Vartana
1 Solution
 
ClifCommented:
You can't make an exe as a wallpaper.

You can, however, create a webpage that will run javascript (or vbscript) code.
0
 
iboutchkineCommented:
Change walpaper

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

    Const SPI_SETDESKWALLPAPER = 20
    Const SPIF_SENDWININICHANGE = &H2
    Const SPIF_UPDATEINIFILE = &H1

    Public Function SetDesktopImage(ByVal fn As String) As Long
        SetDesktopImage = SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, fn, SPIF_SENDWININICHANGE Or SPIF_UPDATEINIFILE)
    End Function
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now