|
-
Mar 16th, 2002, 07:01 PM
#1
Thread Starter
Frenzied Member
xp buttons
how do you use the XP Style buttons and check boxes and option button things?
-
Mar 16th, 2002, 07:03 PM
#2
Member
i do, but as you put your program on other machines it will goto there setup (old buttons)
-
Mar 16th, 2002, 07:12 PM
#3
Thread Starter
Frenzied Member
i dont care if it goes back to the old setup...i just want to have the xp style buttons.
-
Mar 16th, 2002, 07:23 PM
#4
Member
you have xp installed....you should be able to use the xp buttons
-
Mar 16th, 2002, 07:25 PM
#5
Thread Starter
Frenzied Member
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
-
Mar 16th, 2002, 07:31 PM
#6
The picture isn't missing
Cummings has no idea whathe's talking about .
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
Remember, if someone's post was not helpful, you can always rate their post negatively  .
-
Mar 16th, 2002, 07:52 PM
#7
Member
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.
-
Mar 16th, 2002, 07:55 PM
#8
The picture isn't missing
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.
Remember, if someone's post was not helpful, you can always rate their post negatively  .
-
Mar 16th, 2002, 07:59 PM
#9
Thread Starter
Frenzied Member
It didnt work for me...i must be doing something wrong. Is there an easier way or is this the only way?
-
Mar 16th, 2002, 08:06 PM
#10
Member
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
-
Mar 16th, 2002, 08:09 PM
#11
The picture isn't missing
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"
Remember, if someone's post was not helpful, you can always rate their post negatively  .
-
Mar 16th, 2002, 08:18 PM
#12
PowerPoster
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
-
Mar 16th, 2002, 08:20 PM
#13
The picture isn't missing
im pretty sure you know the answer to that.
Remember, if someone's post was not helpful, you can always rate their post negatively  .
-
Mar 16th, 2002, 08:34 PM
#14
Thread Starter
Frenzied Member
ok never mind i got it now..thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|