how to change windowXP theme using vb.net2005

Posted by Darshna Raghani on Stack Overflow See other posts from Stack Overflow or by Darshna Raghani
Published on 2010-04-10T05:20:00Z Indexed on 2010/04/10 5:23 UTC
Read the original article Hit count: 294

Filed under:
|

I have tried the following code but has no effect:

Imports system.Runtime.InteropServices

<DllImport("UxTheme.DLL", BestFitMapping:=False, CallingConvention:=CallingConvention.Winapi, CharSet:=CharSet.Unicode, EntryPoint:="#65")> _
     Shared Function SetSystemVisualStyle(ByVal pszFilename As String, ByVal pszColor As String, ByVal pszSize As String, ByVal dwReserved As Integer) As Integer
     End Function

Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        'This code will set Window Themes
        SetSystemVisualStyle("C:\WINDOWS\Resources\Themes\HmmXP_2_0_1\HmmXP\HmmXP.msstyles", "NormalColor", "NormalSize", 0)
    End Sub

Can anyone plz help?

© Stack Overflow or respective owner

Related posts about vb.net

Related posts about visual-studio-2005