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. - <?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="Microsoft.VB6.VBnetStyles"
-
type="win32"
-
/>
-
<description>VBnet Manifest for VB6 IDE</description>
-
<dependency>
-
<dependentAssembly>
-
<assemblyIdentity
-
type="win32"
-
name="Microsoft.Windows.Common-Controls"
-
version="6.0.0.0"
-
processorArchitecture="X86"
-
publicKeyToken="6595b64144ccf1df"
-
language="*"
-
/>
-
</dependentAssembly>
-
</dependency>
-
</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.
10 17138
... 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.
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.
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
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.
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?
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..
Does anyone know how to do anything like this for Vista?
Does anyone know how to do anything like this for Vista?
Have you tried it this way?
Does anyone know how to do anything like this for Vista?
Yeah
Download attachment from my article
Plz Comment it
GOOD LUCK
ALI
Sign in to post your reply or Sign up for a free account.
Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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.
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
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...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
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...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
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,...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |