Solved

Make exe my wallpaper 1000pts !!!!

Posted on 2004-08-09
2
380 Views
Last Modified: 2010-04-23
hi i need to make my exe which i made in vb.net to replace my wallpaper. (2k/XP)
0
Comment
Question by:Vartana
2 Comments
 
LVL 10

Accepted Solution

by:
Clif earned 500 total points
ID: 11755733
You can't make an exe as a wallpaper.

You can, however, create a webpage that will run javascript (or vbscript) code.
0
 
LVL 28

Expert Comment

by:iboutchkine
ID: 11755921
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Convert an ASPX page into PDF 7 32
VB 2005 Tooltips on Form Load Event 15 31
SqlServer no dupes 25 35
VB.Net - MemoryMappedFiles - Confirm receipt 2 20
Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question