VB中如何优化程序的风格

来源:百度知道 编辑:UC知道 时间:2024/09/21 00:47:13
请问:
用VB写的应用程序界面和按钮等都是Win98的
可以将它改成XP的或其他美观的界面吗?
谢谢!

Private Declare Sub InitCommonControls Lib "comctl32.dll" ()

Private Sub Form_Initialize()
InitCommonControls
End Sub

把以上代码放到窗体里
生成test.exe

同一目录下
把以下内容
写入记事本
重命名为
test.exe.manifest

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">

<assemblyIdentity

version="1.0.0.0"

processorArchitecture="X86"

name="CompanyName.ProductName.YourApp"

type="win32"

/>

<description>Your application description here.</description>

<dependency>

<dependentAssembly>

<assemblyIdentity

type="win32"

name="Microsoft.Windows.Common-Controls&quo