Hi,
how can I change the desktopbackgrou nd in vb.net to a JPG file
I can do it with a bmp file with the api
Private Declare Function SystemParameter sInfo Lib "user32" Alias
"SystemParamete rsInfoA" (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_SETDESKWALL PAPER As Integer = 20
Private Const SPIF_UPDATEINIF ILE As Integer = &H1
Private Const SPIF_SendWinIni Change As Integer = &H2
Jan
how can I change the desktopbackgrou nd in vb.net to a JPG file
I can do it with a bmp file with the api
Private Declare Function SystemParameter sInfo Lib "user32" Alias
"SystemParamete rsInfoA" (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_SETDESKWALL PAPER As Integer = 20
Private Const SPIF_UPDATEINIF ILE As Integer = &H1
Private Const SPIF_SendWinIni Change As Integer = &H2
Jan
Comment