How to change desktop wallpaper 
Author Message
 How to change desktop wallpaper

Could anyone help me with the procedure to change the desktop wallpaper
from within Visual Basic 4.0?

Thanks a lot for any help.

Chris R



Wed, 06 Jan 1999 03:00:00 GMT  
 How to change desktop wallpaper

Heres what you need to do.

Get the VB Declaration for the Win32s Function
        1. SystemParametersInfo.

You also need the constant value for SPI_SETDESKWALLPAPER
you pass the path to the picture you wish to use as one of the parameters
to this function.  Check out the Function parameters in the API viewer
which comes with VB 4.0.  If you are really stuck I can email you the
sample code.

Cheers

Ian Gratton



Quote:

> Could anyone help me with the procedure to change the desktop wallpaper
> from within Visual Basic 4.0?

> Thanks a lot for any help.

> Chris R



Thu, 07 Jan 1999 03:00:00 GMT  
 How to change desktop wallpaper

Quote:

>Heres what you need to do.
>Get the VB Declaration for the Win32s Function
>    1. SystemParametersInfo.
>You also need the constant value for SPI_SETDESKWALLPAPER
>you pass the path to the picture you wish to use as one of the parameters
>to this function.  Check out the Function parameters in the API viewer
>which comes with VB 4.0.  If you are really stuck I can email you the
>sample code.
>Cheers
>Ian Gratton

Thanks, Ian.  I'd never messed around with the API functions at all --
changing wallpaper was there plus a whole lot more.  The one thing I
didn't find, though, was the ability to chose 'tiled' or 'centered' status
for a background.  Do you or anyone else know how this is accomplished?

Thanks again for the help.

Chris R



Fri, 08 Jan 1999 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Help API changing desktop wallpaper

2. How to use VB Script auto change desktop wallpaper?

3. Wallpaper does not change with Active Desktop

4. Change Desktop Wallpaper

5. Wallpaper does not change with Active Desktop

6. Changing wallpaper on desktop

7. Changing Wallpaper & Desktop Settings

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

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

10. Changing HTML Wallpaper for Active Desktop

11. Changing Desktop Wallpaper from code using JPG files

12. change the desktop wallpaper

 

 
Powered by phpBB® Forum Software