change the desktop wallpaper 
Author Message
 change the desktop wallpaper

How do i change the desktop wallpaper's picture?
Thanx, Gil


Sun, 16 Sep 2001 03:00:00 GMT  
 change the desktop wallpaper
Here you go:
****************************************************************************
*****
To General part of a form
Private Declare Function SystemParametersInfo Lib "user32" Alias _
   "SystemParametersInfoA" (ByVal uAction As Long, ByVal uParam As Long, _
   ByVal lpvParam As String, ByVal fuWinIni As Long) As Long
Const SPIF_UPDATEINIFILE = &H1
Const SPI_SETDESKWALLPAPER = 20
Const SPIF_SENDWININICHANGE = &H2

****************************************************************************
*****
And Code where ever you want to execute it:
Dim sFile$, lRet&
sFile = "my.bmp"
lRet = SystemParametersInfo(SPI_SETDESKWALLPAPER, 0&, sFile,
SPIF_UPDATEINIFILE Or SPIF_SENDWININICHANGE)
****************************************************************************
*****

Hope that helps,
Aikka

Quote:
> How do i change the desktop wallpaper's picture?
> Thanx, Gil



Sun, 16 Sep 2001 03:00:00 GMT  
 change the desktop wallpaper
hi Skotti,
Check the MSDN,   Tip 192: Selecting a New Desktop Wallpaper
naveen.
Quote:

> How do i change the desktop wallpaper's picture?
> Thanx, Gil



Tue, 18 Sep 2001 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. How can I change the Desktop Wallpaper from a VB application

2. How do i do a vbscript to change my desktop wallpaper when my computer start

3. Change the Desktop wallpaper

4. Wallpaper does not change with Active Desktop

5. Change Desktop Wallpaper

6. Help API changing desktop wallpaper

7. Wallpaper does not change with Active Desktop

8. Changing wallpaper on desktop

9. Changing Wallpaper & Desktop Settings

10. How to change desktop wallpaper

11. Changing HTML Wallpaper for Active Desktop

12. Changing Desktop Wallpaper from code using JPG files

 

 
Powered by phpBB® Forum Software