Search Tools Links Login

VB6 and windows XP styles

Edit and run VBasic programs on winXP with the real XP controls Style.
Ship Your Application Both on Windows XP and Earlier Versions of Windows with style ;)

Original Author: Megalos


Not many comments here.

Just follow instructions and let me know if you have any problem.


copy this code and create a new file with this name "vb6.exe.manifest" in your
system32 or in the folder where your VB6.exe is.

/*--------save as vb6.exe.manifest anything after this
line -----*/

"1.0" encoding="UTF-8"


processorArchitecture="*" version=""

Enter your Description Here


name="Microsoft.Windows.Common-Controls" version=""





/*----end here-- do not include this line--*/


start your VBasic and you will see it like it was remade for XP.

after this VB is using the new ComCtl32.dll and is running the applications with
this dll as default.


after you compile the app. you will see that is not using the XP controls

To use XP style you will need a manifest file like before but with the
applications name this time. so if you have "XPdemo.exe" you will need a file
with the name "XPdemo.exe.manifest" with the same contents like the
"vb6.exe.manifest" or just copy and rename the file "vb6.exe.manifest".


put in your applications these lines or it will not work with the XP controls


'just to enable the new ComCtl32.dll if ' is there.

Private Declare Function InitCommonControls
Lib "comctl32.dll" () As Long

Private Sub Form_Initialize()


End Sub

'continue with your app. code


note that your application is still running on any older version windows with no
any problems but he he with not the XP styles.

(under win XP)

the same trick will be possible on any program just use the "programname.exe.manifest"
and you will see.

If you don't have windows XP but you want to give the option to your programs to
run on XP with the XP styles enable just do the same and when your programs run
on XP will be full compatible with the XP styles.

This is some ideas i got reading the MSDN library here.

and here is my site where im trying to do my best but i dont have much time ......any
one to help me? :)

CU and have a good day

Megalos Cy


About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 92 times


Visual Basic 6


No attachments for this post

Loading Comments ...


No comments have been added for this post.

You must be logged in to make a comment.