Results 1 to 14 of 14

Thread: xp buttons

  1. #1

    Thread Starter
    Frenzied Member SomethinCool's Avatar
    Join Date
    Jan 2001
    Location
    Malvern, PA
    Posts
    1,407

    xp buttons

    how do you use the XP Style buttons and check boxes and option button things?

  2. #2
    Member
    Join Date
    Mar 2002
    Location
    Australia
    Posts
    39
    i do, but as you put your program on other machines it will goto there setup (old buttons)
    BOO

  3. #3

    Thread Starter
    Frenzied Member SomethinCool's Avatar
    Join Date
    Jan 2001
    Location
    Malvern, PA
    Posts
    1,407
    i dont care if it goes back to the old setup...i just want to have the xp style buttons.

  4. #4
    Member
    Join Date
    Mar 2002
    Location
    Australia
    Posts
    39
    you have xp installed....you should be able to use the xp buttons
    BOO

  5. #5

    Thread Starter
    Frenzied Member SomethinCool's Avatar
    Join Date
    Jan 2001
    Location
    Malvern, PA
    Posts
    1,407
    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

  6. #6
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    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:
    1. Private Declare Function InitCommonControls Lib "comctl32.dll" () As Long

    and this MUST be in form_initialized:
    VB Code:
    1. Private Sub Form_Initialize()
    2.     InitCommonControls
    3. End Sub
    Remember, if someone's post was not helpful, you can always rate their post negatively .

  7. #7
    Member
    Join Date
    Mar 2002
    Location
    Australia
    Posts
    39
    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.
    BOO

  8. #8
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    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 .

  9. #9

    Thread Starter
    Frenzied Member SomethinCool's Avatar
    Join Date
    Jan 2001
    Location
    Malvern, PA
    Posts
    1,407
    It didnt work for me...i must be doing something wrong. Is there an easier way or is this the only way?

  10. #10
    Member
    Join Date
    Mar 2002
    Location
    Australia
    Posts
    39
    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
    BOO

  11. #11
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    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 .

  12. #12
    PowerPoster Pc_Madness's Avatar
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    2,765
    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
    Don't Rate my posts.

  13. #13
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    im pretty sure you know the answer to that.
    Remember, if someone's post was not helpful, you can always rate their post negatively .

  14. #14

    Thread Starter
    Frenzied Member SomethinCool's Avatar
    Join Date
    Jan 2001
    Location
    Malvern, PA
    Posts
    1,407
    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
  •  



Click Here to Expand Forum to Full Width