• Share

It is for VB porgrammers, especially for VB 6.0 programmers.Have you ever tried to change the style of VB 6.0 into XP style or other version of windows?
This is the simple way to change the style of .exe file that you created using VB 6.0.
Follow the instructions.
If your application name is ‘sample.exe’ then create a file sample.exe.manifest in
your project directory.
In that file , place the following 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>

Your application description here

either add a ‘microsoft windows common controls 6.0′ control ( for eg: slider) in the form
( or)
include the following code in the project:

Private Type tagInitCommonControlsEx
lngSize As Long
lngICC As Long
End Type
Private Declare Function InitCommonControlsEx Lib “comctl32.dll” _
(iccex As tagInitCommonControlsEx) As Boolean
Private Const ICC_USEREX_CLASSES = &H200

Public Function InitCommonControlsVB() As Boolean
On Error Resume Next
Dim iccex As tagInitCommonControlsEx
‘ Ensure CC available:
With iccex
.lngSize = LenB(iccex)
.lngICC = ICC_USEREX_CLASSES
End With
InitCommonControlsEx iccex
InitCommonControlsVB = (Err.Number = 0)
On Error Goto 0
End Function

Public Sub Main()
InitCommonControlsVB


‘ Start your application here:

End Sub

now compile it and store the exe and manifest files in the same directory…
It works..!

Thank you
Shahul Hameed
email:sinuxcreation@gmail.com

Popularity: 2% [?]

Related posts:

  1. Glass CMD is an Aero-Style Command Prompt for Windows Vista and 7
  2. Indias First National Level HAcking Contest (CTF STYLE)
  3. Few tricks for win users
  4. Enable Full Screen Command Prompt Window In Windows 7
  5. Adding Command Prompt To Right Click Menu in Windows

Author:

shahul hameed has written 2 awesome articles for us.

One Response to “Changing 98 styles in VB 6.0 to XP style”

  1. That was a nice trick..
    Hope more cool stuff from you…

Trackbacks/Pingbacks

  1. Tweets that mention Changing 98 styles in VB 6.0 to XP style | CeTly L!ve - College of Engineering Thalassery Live -- Topsy.com - [...] This post was mentioned on Twitter by CeTly L!ve, Hari krishnan . Hari krishnan said: Changing 98 styles in ...

Leave a Reply

*