Results 1 to 9 of 9

Thread: Windows XP Look

  1. #1

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

    Windows XP Look

    Ok..i know this question has been asked over and over again but..i'm kinda confused.

    I want my apps to have that Windows XP look. The nice green option buttons or the light blue scroll bars..

    I tried making a manifest file with the XML code (which i dont have anymore..) and that only worked like once for me.

    Can't you just make the WinXP look in VB instead of having an extra file there? Isnt there some sort of option in VB.net 2002 that will make it look like XP?

  2. #2
    ^:^...ANGEL...^:^ wrack's Avatar
    Join Date
    Mar 2002
    Location
    Melbourne, AUSTRALIA
    Posts
    2,695

    Re: Windows XP Look

    Originally posted by SomethinCool
    Ok..i know this question has been asked over and over again but..i'm kinda confused.

    I want my apps to have that Windows XP look. The nice green option buttons or the light blue scroll bars..

    I tried making a manifest file with the XML code (which i dont have anymore..) and that only worked like once for me.

    Can't you just make the WinXP look in VB instead of having an extra file there? Isnt there some sort of option in VB.net 2002 that will make it look like XP?
    I am not sure about VB.NET but when I run them in 2000 they looks same as 2000 thingy except colours are different...

    I think someone posted code to make command buttons and other stuff looks like XP...Try serching more and you should find something but that might be different than what u r looking for...

    Cheers...

  3. #3
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    Well

    If running on xp system, you can use MANIFEST file.

    Else, trying these controls : www.vbsmart.com
    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

  4. #4
    Hyperactive Member Colonel Klink's Avatar
    Join Date
    Aug 2002
    Location
    Gold Coast, Australia
    Posts
    329
    try the following:

    Mizo Themer : excellent auto manifest generator, just point it to an exe and walla... it be themed (if the exe supports themes)

    progress bar : the ccrp progress bar (unlike the common controls... ummm control ) can handle XP manifested themed look

    status bar & tabs : there is a xp status bar, and tabstrip (will keep the xp look even if not on xp)
    statusbar : http://www.freevbcode.com/ShowCode.Asp?ID=5418
    tabstrip: http://www.freevbcode.com/ShowCode.Asp?ID=5417

    hope i helped
    Our Father, who 0wnz heaven, j00 r0ck!
    May all 0ur base someday be belong to you!
    May j00 0wn earth just like j00 0wn heaven.
    Give us this day our warez, mp3z, and pr0n through a phat pipe.
    And cut us some slack when we act like n00b lamerz, just as we teach n00bz when they act lame on us.
    Please don't give us root access on some poor d00d'z box when we're too pissed off to think about what's right and wrong, and if you could keep the fbi off our backs, we'd appreciate it.
    For j00 0wn r00t on all our b0x3s 4ever and ever, 4m3n.

  5. #5
    New Member
    Join Date
    Oct 2003
    Location
    Tifton, GA
    Posts
    2
    how then, does one use xp style controls in vb 6 apps? without writing custom user controls?
    the manifest/xml files wont work the same way they will with vb.net apps.
    I am Tux.
    That is all you ever need know.

  6. #6
    Frenzied Member Ideas Man's Avatar
    Join Date
    Aug 2002
    Location
    Australia
    Posts
    1,718
    All controls can have the XP look applied, but for VB6, you need to use the older common controls. They still work the same, so simply just select common controls 5 instead of 6, i think the first batch of 6 work fine (default controls) but the progress bar doesn't work unless it's common controls v5. But yeah, just make one manifest file and your away, doesn't need to be customized in any way and you can use it for VB6. The only issue i've had with using the manifest on VB6.exe is the colour picker doesn't work, you can't see the colours, but if you know where they are, it's not much of a problem (Though i wouldn't mind knowing how to get the colours back without removing the manifest file).

    Anyway, there really isn't much of a way to get it working without it, that's what i've read, and that's what the microsoft site says, but it's quick and easy and doesn't require a lot of code. The code to get is working is....

    VB Code:
    1. 'Place in Module
    2.  
    3. Private Type tagInitCommonControlsEx
    4.     lngsize As Long
    5.     lngICC As Long
    6. End Type
    7.  
    8. Private Declare Function InitCommonControlsEx Lib "comctl32.dll" (iccex As tagInitCommonControlsEx) As Boolean
    9.  
    10. Private Const ICC_USEREX_CLASSES = &H200
    11.  
    12. Public Function InitCommonControlsVB() As Boolean
    13.  
    14. On Error Resume Next
    15.     Dim iccex As tagInitCommonControlsEx
    16.    
    17.     'Ensure CC Available:
    18.     With iccex
    19.         .lngsize = LenB(iccex)
    20.         .lngICC = ICC_USEREX_CLASSES
    21.     End With
    22.  
    23. InitCommonControlsEx iccex
    24. InitCommonControlsVB = (Err.Number = 0)
    25.  
    26. On Error GoTo 0
    27. End Function

    and place this in the startup form...

    VB Code:
    1. Private Sub Form_Initialize()
    2. InitCommonControlsVB
    3. End Sub

  7. #7
    New Member
    Join Date
    Oct 2003
    Location
    Tifton, GA
    Posts
    2
    wow! works like a charm! thx m8!
    I am Tux.
    That is all you ever need know.

  8. #8
    Frenzied Member Ideas Man's Avatar
    Join Date
    Aug 2002
    Location
    Australia
    Posts
    1,718
    No problem.

  9. #9
    Hyperactive Member AvisSoft's Avatar
    Join Date
    Sep 2002
    Location
    Chandigarh
    Posts
    459
    Well i see many different solutions and many different answers all are working and everything so here's mine also:

    http://www.maxvb.com/viewtopic.php/p/217
    Tapan Bhanot,
    CEO, Avis Software.
    Website: www.avissoftware.com

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