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 :mad:
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. ;(
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 :(
Re: Is there a control like the CoolBar control in VB6
:mad: Oh yea when I run it, the control actually looks flat and not raised or recessed at all..... BOO HOO
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% :(
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 :D
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.