Solved

Make exe my wallpaper 1000pts !!!!

Posted on 2004-08-09
2
379 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

896 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now