开发者

how to change windowXP theme using vb.net2005

开发者 https://www.devze.com 2022-12-26 14:39 出处:网络
I have tried the following code but has no effect: Imports system.Runtime.InteropServices <DllImport(\"UxTheme.DLL\", BestFitMapping:=Fa开发者_如何学Clse, CallingConvention:=CallingConvention.Win

I have tried the following code but has no effect:

Imports system.Runtime.InteropServices

<DllImport("UxTheme.DLL", BestFitMapping:=Fa开发者_如何学Clse, 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?


Check this link, may be that can be helpful to you...

0

精彩评论

暂无评论...
验证码 换一张
取 消