473,398 Members | 2,403 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes and contribute your articles to a community of 473,398 developers and data experts.

Give XP Look to VB6

Ali Rizwan
925 512MB
Hi All.
Yesterday I was searching on the net for something new for VB when I found a technique by which I am able to convert my VB6 applications into XP styles.

Expand|Select|Wrap|Line Numbers
  1. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  2. <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
  3. <assemblyIdentity
  4.    version="1.0.0.0"
  5.    processorArchitecture="X86"
  6.    name="Microsoft.VB6.VBnetStyles"
  7.    type="win32"
  8. />
  9. <description>VBnet Manifest for VB6 IDE</description>
  10. <dependency>
  11.    <dependentAssembly>
  12.      <assemblyIdentity
  13.        type="win32"
  14.        name="Microsoft.Windows.Common-Controls"
  15.        version="6.0.0.0"
  16.        processorArchitecture="X86"
  17.        publicKeyToken="6595b64144ccf1df"
  18.        language="*"
  19.      />
  20.    </dependentAssembly>
  21. </dependency>
  22. </assembly>
Edit this code in Notepad and save it as VB6.exe.manifest, then copy it to the VB directory (where the VB6.exe file resides). Then start a new project and add some buttons, combo boxes etc and compile an exe from it. Suppose it's name is app.exe. Then rename make another manifest file and copy it to your applications directory and take a XP look.

Thanks to the person from whom I get this code.
Aug 16 '07 #1
10 17133
pureenhanoi
175 100+
... convert my vb6 applications into XP Styles ...
Yah, using Manifest file can bring up some Controls into Xp-Style (Button, TextBox, Label, Frame...). I'ver never try copy an Manifest file to VB6 directory, but using a manifest file in my App dir and call InitCommonControls() API function will get the same result.
Application using Manifest file to bring up Xp-Style will get some error on interface. If you put Label and TextBox into Frame, it will be flash when mouse move over. If you put CommandButtons, OptionButtons into Frame, the buttons' border will be rounded with black, and optionbuttons will get black back-color.
Instead of Intrinsic controls, all other controls cannot get Xp-Style (Listview, TreeView, SSTab).
If your application was small, use xp-style will get no problem. If its not, Xp-Style by Manifest isnot suit.
Aug 17 '07 #2
Killer42
8,435 Expert 8TB
Thanks for that, Ali.

One question - could you please clarify what you mean by this sentence?

Then rename make another manifest file and copy it to your applications directory and take a XP look.
Aug 17 '07 #3
Ali Rizwan
925 512MB
Thanks for that, Ali.

One question - could you please clarify what you mean by this sentence?

Then rename make another manifest file and copy it to your applications directory and take a XP look.
Hello Killer.
Suppose you have made an exe of your applicatio named myapp.
Rename your manifest file into myapp (You created) directory.
And excute the myapp.exe, and see a XP Look.

Remember rename your manifest file as myapp.exe.manifest
Aug 17 '07 #4
Ali Rizwan
925 512MB
Yah, using Manifest file can bring up some Controls into Xp-Style (Button, TextBox, Label, Frame...). I'ver never try copy an Manifest file to VB6 directory, but using a manifest file in my App dir and call InitCommonControls() API function will get the same result.
Application using Manifest file to bring up Xp-Style will get some error on interface. If you put Label and TextBox into Frame, it will be flash when mouse move over. If you put CommandButtons, OptionButtons into Frame, the buttons' border will be rounded with black, and optionbuttons will get black back-color.
Instead of Intrinsic controls, all other controls cannot get Xp-Style (Listview, TreeView, SSTab).
If your application was small, use xp-style will get no problem. If its not, Xp-Style by Manifest isnot suit.
Thanks for that.
I will check it. But i m using it on my application which has a large number of forms and control and is doing well i have no problem yet. And if there is any problem then delete your manifest file from your applications directory.
Aug 17 '07 #5
Killer42
8,435 Expert 8TB
Suppose you have made an exe ...
So, you mean I should make a copy of the manifest file, in the project folder, and rename that copy to match the name of the new application?

I just want to be clear on this - we're not talking about renaming the one in the VB folder, at all?
Aug 18 '07 #6
Yah, using Manifest file can bring up some Controls into Xp-Style (Button, TextBox, Label, Frame...). I'ver never try copy an Manifest file to VB6 directory, but using a manifest file in my App dir and call InitCommonControls() API function will get the same result.
Application using Manifest file to bring up Xp-Style will get some error on interface. If you put Label and TextBox into Frame, it will be flash when mouse move over. If you put CommandButtons, OptionButtons into Frame, the buttons' border will be rounded with black, and optionbuttons will get black back-color.
Instead of Intrinsic controls, all other controls cannot get Xp-Style (Listview, TreeView, SSTab).
If your application was small, use xp-style will get no problem. If its not, Xp-Style by Manifest isnot suit.
It's easy to fix these problems. Put a PictureBox into a Frame, then put your CommandButtons, OptionButtions etc. into the Frame. It will be OK. If you wanna get a Xp-Style for Treeview, Listview....the component should be "Microsoft Windows Common Controls 5.0", the version 6.0 will not work at the Manifest..
Oct 30 '07 #7
Killer42
8,435 Expert 8TB
Thanks for the tips.
Oct 31 '07 #8
daniel aristidou
491 256MB
Does anyone know how to do anything like this for Vista?
Oct 31 '07 #9
Killer42
8,435 Expert 8TB
Does anyone know how to do anything like this for Vista?
Have you tried it this way?
Oct 31 '07 #10
Ali Rizwan
925 512MB
Does anyone know how to do anything like this for Vista?
Yeah
Download attachment from my article

Plz Comment it

GOOD LUCK
ALI
Nov 18 '07 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Az Tech | last post by:
Hi people, (Sorry for the somewhat long post). I request some of the people on this group who have good experience using object-orientation in the field, to please give some good ideas for...
18
by: free2cric | last post by:
Hi, I attanded an interview on C++ Question asked were and my answers to them.. 1. In a CPP program what does memory leak occure? -- i said.. In a constructor , the pointer variables were...
10
by: sherifffruitfly | last post by:
Hi all, This isn't minimal code, but at least it gives the idea reasonably well - and yes, I'm a newb :( The point of me giving this code is that all three vars look to my eye as though...
18
by: chellappa | last post by:
hi suppose like this function ,,, i want optimize to exceute more fast.... please give some optimization techiques for this routine and also give some ideas for c programming optimzation for...
1
by: Shell | last post by:
Hi, I have an application written in ASP.NET 2.0, I would like it's GUI especially the webpart to look like windows xp like transparent look or 3D look. I have looked at option of Borderstyle...
6
by: vb. | last post by:
Why we give a function data type? when we declare a function we gave a name and datatype for that function what for? if i make a parameter i declare it and give it a datatype and if i use variabels...
28
by: Yuri CHUANG | last post by:
"No newline at the end of your output" is really a problem? I've never learned that before. So I desire to know some tips about writting a program perfectly.Can anyone give me some tips which are...
1
by: Ellen12c | last post by:
On the last post I asked about a code to make a vertical scroll bar and ends up I didn't need one. I was told by a big group of people on this forum that I needed to do away with all the flash and...
5
by: John | last post by:
Given an array of elements, look at it as a binary tree. Start at the last interior node, and downheap it. Then downheap the previous interior node, and continue in this fashion, up to the root.
8
by: aslamhenry | last post by:
how to make these program huhu please any key in 5 digit : 56789 ouput 5678 9 567 89 56 789 5 6789
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.