heres how to have the current xp theme apply to your prog
1) put this in the code for prog:
VB Code:
Private Declare Function InitCommonControls Lib "comctl32.dll" () As Long 'this file needs to be on the comp Private Sub Form_Initialize() InitCommonControls End Sub
2) make a txt file w/ this is it
<?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=" "
type="win32"
/>
<description></description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="X86"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
</assembly>
3) use Resource Hacker to open your compiled prog then click action, add new recource
4) add the text file then enter 24,1,1301 for the 3 values then click add
5) click file,save and youre done!!
PS this works w/ all progs, c++ too.. if u do it to vb6.exe your progs will have the xp look while youre making them!




Reply With Quote