how do you use the XP Style buttons and check boxes and option button things?
Printable View
how do you use the XP Style buttons and check boxes and option button things?
i do, but as you put your program on other machines it will goto there setup (old buttons)
i dont care if it goes back to the old setup...i just want to have the xp style buttons.
you have xp installed....you should be able to use the xp buttons
i have Windows XP Home Edition installed....but i upgraded from WinMe..and when i put a command button on the form...it's exactly the same as it was in WinMe
Cummings has no idea whathe's talking about :rolleyes: .
goto http://www.turtletips.com/vbtips/#manifestfile
and to add on to that, you need to use initcommoncontrols by declaring:
VB Code:
Private Declare Function InitCommonControls Lib "comctl32.dll" () As Long
and this MUST be in form_initialized:
VB Code:
Private Sub Form_Initialize() InitCommonControls End Sub
i dont need to do that to get the xp style buttons to appear, i just create the form, and thay are in xp format.
i must have changed somthing with one of the updates i did.
but does your exe's that you make (not run from IDE) have the same effect? if not then maybe someone made the .xml file in the VB6 folder.
It didnt work for me...i must be doing something wrong. Is there an easier way or is this the only way?
add the code BuggyProgrammer gave you above to the form code.
then from http://www.turtletips.com/vbtips/#manifestfile copy the code and follow the instructions they give you
If you make the .exe on the desktop say called Test.exe
you need to same the code http://www.turtletips.com/vbtips/#manifestfile gives you on the desktop as "Test.exe.manifest" (including the quotes "" )
Make sure when you save it its saved as All Files (picture is at http://www.turtletips.com/vbtips/#manifestfile )
then when you run the exe, it will give you the xp style buttons
what error occured? if nothing hapend then make sure that the xml is in the same path as the exe, that you COMPILE the exe, and that the manifest file name is like "programname.exe.manifest"
If you make a Program in 95,95 Me, and then install it on a machine running XP, will the controls have a XP kinda look or will it be just like it was when it was made in Win 9's.
And what about the other way round, if u made it on Xp.. etc
im pretty sure you know the answer to that. :)
ok never mind i got it now..thanks