dcsimg


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 7 of 7

Thread: set wallpaper in html format?

  1. #1
    Join Date
    Mar 2004
    Location
    malaysia
    Posts
    150

    set wallpaper in html format?

    How to set wallpaper which is in html format?

  2. #2
    Join Date
    Oct 2005
    Location
    Maady
    Posts
    1,819
    How to set it without programming ??? do u mean active desktop item ?

    If the last so u need to creat a CDF file [XML] ;
    here u will get the complete method :

    http://www.javascriptkit.com/howto/active2.shtml
    Programmer&Cracker CS
    MyBlog:Blog.Amahdy.com
    MyWebsite:www.Amahdy.com

  3. #3
    Join Date
    Mar 2004
    Location
    malaysia
    Posts
    150
    I think you misunderstand. The question is how to use vb6 to set wallpaper(html file)? The wallpaper is in html format. What is activite desktop item?

  4. #4
    Join Date
    Oct 2005
    Location
    Maady
    Posts
    1,819
    Acive desktop item can help u make what u want ; it's web [html and more] items that can be added to your desktop like the channel box in windows 98 ..

    u can also put one only big item as wallpaper , the CDF file I was talking about can do that by executing it .
    Programmer&Cracker CS
    MyBlog:Blog.Amahdy.com
    MyWebsite:www.Amahdy.com

  5. #5
    Join Date
    Aug 2005
    Location
    Hermosillo, Sonora, Mexico
    Posts
    103
    ---------------------------------------------------------------
    Declare Function SystemParametersInfo Lib "user32" _
    Alias "SystemParametersInfoA" (ByVal uAction As Long, _
    ByVal uParam As Long, ByVal lpvParam As Any, _
    ByVal fuWinIni As Long) As Long

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

    Public Sub SetWallpaper(ByVal FileName As String)
    Dim x As Long
    x = SystemParametersInfo(SPI_SETDESKWALLPAPER, _
    0&, FileName, SPIF_SENDWININICHANGE Or SPIF_UPDATEINIFILE)

    End Sub
    ------------------------------

    To change the wallpaper, use this line: SetWallpaper "C:\Windows\XXXX.htm"

  6. #6
    Join Date
    Oct 2005
    Location
    Maady
    Posts
    1,819
    I found this API valid but it don't work at me .. maybe it's for earlier windows only.
    Programmer&Cracker CS
    MyBlog:Blog.Amahdy.com
    MyWebsite:www.Amahdy.com

  7. #7
    Join Date
    Mar 2004
    Location
    malaysia
    Posts
    150
    Quote Originally Posted by jggtz
    ---------------------------------------------------------------
    Declare Function SystemParametersInfo Lib "user32" _
    Alias "SystemParametersInfoA" (ByVal uAction As Long, _
    ByVal uParam As Long, ByVal lpvParam As Any, _
    ByVal fuWinIni As Long) As Long

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

    Public Sub SetWallpaper(ByVal FileName As String)
    Dim x As Long
    x = SystemParametersInfo(SPI_SETDESKWALLPAPER, _
    0&, FileName, SPIF_SENDWININICHANGE Or SPIF_UPDATEINIFILE)

    End Sub
    ------------------------------

    To change the wallpaper, use this line: SetWallpaper "C:\Windows\XXXX.htm"

    I have try the following code but it only work for bmp file and not html. Are your sure it work for html?

Similar Threads

  1. Conversion of HTML report to PDF format
    By software_develo in forum .NET
    Replies: 6
    Last Post: 05-17-2013, 04:24 AM
  2. email blaster with CDONTS
    By kyle in forum ASP.NET
    Replies: 6
    Last Post: 10-31-2002, 08:12 PM
  3. Getting a GUI to function
    By Eric in forum Java
    Replies: 1
    Last Post: 11-27-2001, 07:53 AM
  4. Create Procedure
    By YC Choo in forum Database
    Replies: 5
    Last Post: 09-03-2001, 01:42 PM
  5. Data Report in HTML format
    By mallet in forum VB Classic
    Replies: 0
    Last Post: 12-25-2000, 07:23 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center