modfy the desktopbackground



Hi,

how can I change the desktopbackground in vb.net to a JPG file
I can do it with a bmp file with the api
Private Declare Function SystemParametersInfo Lib "user32" Alias
"SystemParametersInfoA" (ByVal uAction As Integer, ByVal uParam As Integer,
ByVal lpvParam As String, ByVal fuWinIni As Integer) As Long

'constants to be used with the above api

Private Const SPI_SETDESKWALLPAPER As Integer = 20

Private Const SPIF_UPDATEINIFILE As Integer = &H1

Private Const SPIF_SendWinIniChange As Integer = &H2


Jan


.



Relevant Pages

  • Re: Per VBA mit Nicht-Standard-Drucker ausdrucken
    ... Determine Available PaperBins with DeviceCapabilities API ... Private Declare Function OpenPrinter Lib "winspool.drv" Alias _ ... DeviceCapabilities function requires a printer name and port. ...
    (microsoft.public.de.word.vba)
  • Re: Find path to outlook.exe
    ... Public makes the function visible to all modules, Private ... is usuable only by the module they reside in. ... Move the API module into the Form's module instead of its own. ... Leave the API code as is but wrap it with a Public Function from inside ...
    (microsoft.public.access.modulesdaovba)
  • SetFileInformationByHandle He
    ... I'm writing a filecopier using APIs. ... Private Declare Function SetFileInformationByHanlde Lib "kernel32" (_ ... dim srcHFI As BY_HANDLE_FILE_INFORMATION ...
    (microsoft.public.vb.winapi)
  • Re: Accessors in Python (getters and setters)
    ... and what if I want to change a private API to a public one. ... I have read tens of thousands LOC of Python in the seven past years. ... javaish getters/setters in Python, ...
    (comp.lang.python)
  • Re: Accessors in Python (getters and setters)
    ... and what if I want to change a private API to a public one. ... I have read tens of thousands LOC of Python in the seven past years. ... javaish getters/setters in Python, ...
    (comp.lang.python)

Loading