Getting XP interface with VB6
August 25th, 2007 Noor
Most of non-advanced programmers in VB6 have face this problem. The applications they develop look kind of “old school” when run on a XP machine. I too faced this problem until I found the answer!
So this is what you have to do:
step1: create a module (you can name it whatever you like)
step2: paste the code below in it.
Step 3: on each form you open call this function in form_intinitialize.
Example:
(if you do not call the function then it will not show the xp style on that form)
step 4:
create a textfile and paste the following code in it:
Step5: Rename the file as <yourexefilename>.exe.manifest and place it in the same folder where you place your .exe file
step6: This is to make you vb6 dev application to have the XP look. go to the directory where you have vb6.exe (if you have installed vb in c drive then it may be in C:\Program Files\Microsoft Visual Basic\VB98). then make a textfile with and paste the code given in step 4 and then rename it as vb6.exe.manifiest
click on you vb6.exe and see the change.
Note: after doing the above the interface will change from theme to theme.
Posted in Visual Baisc 6.0 | 2 Comments »
