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 Integer
'''
''' Changes the desktop background image
'''
'''
Path to the image
''' Makes changes to keep the image after a reboot
'''
Public Sub ChangeBackground(ByVal FileName As String, ByVal KeepAfterBoot As Boolean)
Try
If KeepAfterBoot = True Then
SystemParametersInfo(20, 0, FileName, 1)
Else
SystemParametersInfo(20, 0, FileName, 0)
End If
Catch ex As Exception
MsgBox(ex)
End Try
End Sub
-
game design team
We have emerged as the leading online community for game development of all levels. Our expertise encases all facets for writing PC , Mobile and Online of 2D and 3D Gaming programming and applications development, for instance by using the latest 3D engines, scripting languages and animation techniques, our experienced and qualified team deals with all kind of requirements, whether it be a beginner's choice or an expert gaming action. Most importantly, we endeavor to offer compelling solution and eminent support to our growing community of prospective players and customers.
Categories:
Subscribe to:
Post Comments (Atom)
0 Response for the "changing background using vb.net"
Post a Comment