Welcome to Dream.In.Code
Become a VB Expert!

Join 149,545 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,551 people online right now. Registration is fast and FREE... Join Now!




change project look style to vista

 
Reply to this topicStart new topic

change project look style to vista

muddasir
17 Nov, 2007 - 11:16 PM
Post #1

D.I.C Head
Group Icon

Joined: 14 Jan, 2007
Posts: 106



Thanked: 4 times
Dream Kudos: 200
My Contributions
is there any way that can change the look of
our project (which we had alredy made) as
the look of windows vista or xp.
i want to change all the control to look like
vista (textbox, combobox, datacombo etc) and even
the tittle bar


User is offlineProfile CardPM
+Quote Post

Ken Halter
RE: Change Project Look Style To Vista
18 Nov, 2007 - 10:42 PM
Post #2

New D.I.C Head
*

Joined: 18 Nov, 2007
Posts: 35



Thanked: 6 times
My Contributions
I have to admit, I only have about an hour's experience with Vista (that's how long it took to boot tongue.gif )

But, to enable XP styles in a VB6 program, you'd need to create a manifest and recompile the app, adding a single line of code and making sure you don't have checkboxes or option buttons in a frame (they turn black).

Any container that needs to take on XP (and probably Vista) styles needs to expose a HasDC property (and it needs to be set = true).. so, picturebox controls are fine.

But, anyway.... since I haven't been able to figure out if this is a VB Classic forum or not, yet, if you need more info about this subject, and it *is* VB5 or VB6, then I can help...
User is offlineProfile CardPM
+Quote Post

muddasir
RE: Change Project Look Style To Vista
19 Nov, 2007 - 07:11 AM
Post #3

D.I.C Head
Group Icon

Joined: 14 Jan, 2007
Posts: 106



Thanked: 4 times
Dream Kudos: 200
My Contributions
thanks for replying
but i konw about the manifiest file and how to use
it . it only changes some control like textbox,
buttons etc. but does not had any effect on
the control which we add only defauld vb control
looks like xp.
it does not also chage tittle bar colour

now , i donot want this basically i had made
a accouting project and with out some graphic
it does not look fine.

what i want is just like themes in xp as we change
the theme whole look of xp changes (including
tittle bar etc). now i want some thing like this
which made my prg look nice.
thanks



QUOTE(Ken Halter @ 18 Nov, 2007 - 11:42 PM) *

I have to admit, I only have about an hour's experience with Vista (that's how long it took to boot tongue.gif )

But, to enable XP styles in a VB6 program, you'd need to create a manifest and recompile the app, adding a single line of code and making sure you don't have checkboxes or option buttons in a frame (they turn black).

Any container that needs to take on XP (and probably Vista) styles needs to expose a HasDC property (and it needs to be set = true).. so, picturebox controls are fine.

But, anyway.... since I haven't been able to figure out if this is a VB Classic forum or not, yet, if you need more info about this subject, and it *is* VB5 or VB6, then I can help...


User is offlineProfile CardPM
+Quote Post

muddasir
RE: Change Project Look Style To Vista
19 Nov, 2007 - 07:28 AM
Post #4

D.I.C Head
Group Icon

Joined: 14 Jan, 2007
Posts: 106



Thanked: 4 times
Dream Kudos: 200
My Contributions
well a friend suggest me to use skins
which are not only easy to use rather than
manifiest file but also change your tittle bar as well
i am trying to use it and if i get more detail i will
share it with others



User is offlineProfile CardPM
+Quote Post

Ken Halter
RE: Change Project Look Style To Vista
19 Nov, 2007 - 08:18 PM
Post #5

New D.I.C Head
*

Joined: 18 Nov, 2007
Posts: 35



Thanked: 6 times
My Contributions
hmmm... there must be something wrong, somewhere. Maybe it's just Vista being stubborn. I really should load and experiment with it... I'm going to need a new laptop one of these days and getting one with XP is going to be tough.

Just in case, here's more info.....

To make it work correctly, the call to InitCommonControlsEx absolutely must be the first line of code that runs in your app. The easiest way to make sure that happens is to use Sub Main as the startup object... make the API call and show your main form, as you do now.

Here's some sample code... I've tried it and it works as advertised.... on XP <g>

InitCommonControlsEx: Common Control Initialization Module
http://vbnet.mvps.org/index.html?code/comctl/initcomctls.htm

Here's a manifest template you can use.

[VBnet ComCtrls]  XP Style Sample Manifest
http://vbnet.mvps.org/code/comctl/samplemanifest.htm

This shows how to use XP styles on the VB IDE

Manifests: Make the VB IDE use Windows XP Styles
http://vbnet.mvps.org/code/forms/vbidexp.htm

If none of that does any good... well... looks like a really good reason for me to experiment with Vista... funny... people used to call XP "Windows 2000 with a Fisher/Price UI"... I wonder what these people are saying about Vista.

You may want to search MSDN and possibly download a Vista SDK (if there is one) and look for api's that've been depreciated or replaced.

Oh well....

Well... if you want to experiment with Skins, here's an excellent start. Full source included and it's a prize winner... how can you go wrong <g>

A++ Skin Demo
http://www.planetsourcecode.com/vb/scripts...18&lngWId=1

User is offlineProfile CardPM
+Quote Post

Se7en20
RE: Change Project Look Style To Vista
20 Nov, 2007 - 02:08 AM
Post #6

New D.I.C Head
*

Joined: 14 Nov, 2007
Posts: 1


My Contributions
QUOTE(muddasir @ 18 Nov, 2007 - 12:16 AM) *

is there any way that can change the look of
our project (which we had alredy made) as
the look of windows vista or xp.
i want to change all the control to look like
vista (textbox, combobox, datacombo etc) and even
the tittle bar


Try creating a manifest file and then storing it the location of your .exe. The app will automatically load and use the look and feel of the manifest file settings
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/7/09 09:28PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month