Results 1 to 7 of 7

Thread: Is there a control like the CoolBar control in VB6 [Resolved]

  1. #1

    Thread Starter
    Addicted Member Porsche944's Avatar
    Join Date
    Apr 2005
    Location
    Ann Arbor
    Posts
    182

    Resolved Is there a control like the CoolBar control in VB6 [Resolved]

    Is there a control like the CoolBar in Visual Basic 6.0 that you can add various other controls to that will be docked to the top or bottom of the form?

    Would I be stuck with using the panel and dock it to the top? It dosen't give you that nice 3D effect however
    Last edited by Porsche944; Apr 10th, 2005 at 04:48 PM.

  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Is there a control like the CoolBar control in VB6

    You could use the Toolbar control or add the vb6 coolbar to your toolbox. But when adding it to your project (cb)
    it doesnt let you add child controls to it like a toolbar. ;(
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  3. #3

    Thread Starter
    Addicted Member Porsche944's Avatar
    Join Date
    Apr 2005
    Location
    Ann Arbor
    Posts
    182

    Re: Is there a control like the CoolBar control in VB6

    The toolbar control dosen't have that cool 3D look to it. If I set the appearance to Fixed3D it actually has a recessed look and not a look that is popped up.

    I guess this will have to do

  4. #4

    Thread Starter
    Addicted Member Porsche944's Avatar
    Join Date
    Apr 2005
    Location
    Ann Arbor
    Posts
    182

    Re: Is there a control like the CoolBar control in VB6

    Oh yea when I run it, the control actually looks flat and not raised or recessed at all..... BOO HOO

  5. #5
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Is there a control like the CoolBar control in VB6

    The Appearance and Borderstyle can both be used in combinations to achieve different looks, but still no
    where near a CoolBar control.

    I thought I remembered reading somewhere a fix for the CoolBar in code to allow it to be an actual container
    control in vb.net.

    Try a search and maybe you will find it. Either on M$ or VBF I cant remember 100%
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  6. #6
    Member
    Join Date
    Aug 2004
    Posts
    56

    Lightbulb Re: Is there a control like the CoolBar control in VB6 [Resolved]

    Actually YOU CAN easily make the toolbar (and other controls) in VB6 look just like the ones in XP!!!

    To design VB6 projects with XP looking controls, copy the below into a text file, save it into your VB6 directory as "VB6.exe.manifest" (the file must be saved in the same folder as VB6.exe), and then open VB6. VB6 should now look like XP. Apparently this nifty little piece of code somehow binds the XP controls into VB - don't ask me how it works though (I actually found this earlier today on this site because I also wanted to create a toolbar which looked like the one in XP).

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
    <assemblyIdentity
    version="1.0.0.0"
    processorArchitecture="X86"
    name="Executable Name"
    type="win32"
    />
    <description>Executable Name</description>
    <dependency>
    <dependentAssembly>
    <assemblyIdentity
    type="win32"
    name="Microsoft.Windows.Common-Controls"
    version="6.0.0.0"
    processorArchitecture="X86"
    publicKeyToken="6595b64144ccf1df"
    language="*"
    />
    </dependentAssembly>
    </dependency>
    </assembly>


    Note: This file doesn't affect some of the older controls, but if you look for the newer ones it should change them (i.e. there are two versions of the toolbar control - only the newer one is affected by this file)

    Also, to have the controls in your EXE look like the XP controls you need to save another copy of this file to the directory where your exe is saved and call it <project name>.exe.manifest.

    Let me know how this works out. It's working great for me
    Last edited by Day Trooper; Apr 13th, 2005 at 10:18 PM.

  7. #7
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Is there a control like the CoolBar control in VB6 [Resolved]

    Day Trooper, this is the VB.NET forum
    We use Application.EnableVisualStyles() here.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

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