Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get XP-style controls with VB6 7

Status
Not open for further replies.

Punchinello

Programmer
Apr 25, 2003
116
US
I am writing a small app with Visual Studio 6.0 Enterprise but most of the controls that I use (textbox, combobox, option button, command button) will not display with the Windows XP-style. Do I need a more recent version of VB or to find third-party controls for VB6?

Thanks
 
You can change the name of the manifest in XP before loading and it'll have the classic interface. So you could technically build in a switch where the user could change the look themselves, but only with XP.
 
Here's another detail: my command buttons only display in XP style if their Style is set to '0 - Standard'. If I add a bitmap and set Style to '1 - Graphical', they revert to the classic look.

That is unless anyone knows differently...
 
DrJavaJoe, I just put the vb6.exe.manifest file in my vb6 directory. It was wonderful to find that not only my own program, but (of course) also the whole VB IDE adapted XP styles. That was really wonderful. Here is your star...
star.gif
 
Thanks DRJavaJoe,

That's really helpful for me too, here's another star for the tip
 
Hi guys,

In an earlier post in this thread Punchinello wrote (in regards to xp styles on controls)

"Here's another detail: my command buttons only display in XP style if their Style is set to '0 - Standard'. If I add a bitmap and set Style to '1 - Graphical', they revert to the classic look."

This is the exact problem im having and i was wondering if any of you came up with a solution? Any help would be appriciated.

Regards
Erin
 
I had problems with the manifest solution. Check out the free controls at


Mike

When you call out for help in the darkness, and you hear a voice in return, you're probably just talking to yourself again!
 
Hi Mike,

They have some useful controls, however the mainfest solution does not require the user to redraw all the forms in order to get the XP look.

Having said that, reading the posts above, it seems that you may have to redraw existing forms anyway to place controls within pictureboxes and so on. I certainly found that to be the case in the one experiment I did with the manifest approach.


- Andy
___________________________________________________________________
If you think nobody cares you're alive, try missing a couple of mortgage payments
 
Thanks for the help guys. I had already found the free controls at innovasys.com and its looks like im just going to have to change over to them.

Thanks again
Erin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top