gamedesignteam

MOBILE GAMES, IPHONE APPLICATIONS, COMPUTER GAMES, GAME DEVELOPMENT TRAINING , http://www.gamedesignteam.com

  • 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.

changing background using vb.net

Posted by virtualinfocom On 1:25 AM 0 comments

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

Categories:

0 Response for the "changing background using vb.net"

Post a Comment