Let's Start (without introduction)

Design your form and put your necessary controls in it (e.g. Form1)

Change "Startup Object" to Sub Main

Add a module and insert in it this code

VB Code:
  1. Private Type tagInitCommonControlsEx
  2.    lngSize As Long
  3.    lngICC As Long
  4. End Type
  5. Private Declare Function InitCommonControlsEx Lib "comctl32.dll" _
  6.    (iccex As tagInitCommonControlsEx) As Boolean
  7. Private Const ICC_USEREX_CLASSES = &H200
  8.  
  9. Public Function InitCommonControlsVB() As Boolean
  10.    On Error Resume Next
  11.    Dim iccex As tagInitCommonControlsEx
  12.    ' Ensure CC available:
  13.    With iccex
  14.        .lngSize = LenB(iccex)
  15.        .lngICC = ICC_USEREX_CLASSES
  16.    End With
  17.    InitCommonControlsEx iccex
  18.    InitCommonControlsVB = (Err.Number = 0)
  19. End Function
  20.  
  21. Public Sub Main()
  22. InitCommonControlsVB
  23.  
  24. ' Start your Application here ( e.g. Form1.Show )
  25. Form1.Show
  26. End Sub

Now Build EXE Program ( for example test.exe )

Open Notepad and type

HTML Code:
<?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.YourAppName" 
        type="win32" />
    <description>Your application description here</description>
    <dependency>
        <dependentAssembly>
            <assemblyIdentity 
                type="win32" 
                name="Microsoft.Windows.Common-Controls" 
                version="6.0.0.0" 
                processorArchitecture="X86" 
                publicKeyToken="6595b64144ccf1df" 
                language="*" />
        </dependentAssembly>
    </dependency>
</assembly>
Save it in the directory you saved test.exe in it with name (test.exe.manifest)

Finally, execute your program (test.exe) you will see all comon controls with XP Styles...