Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

a couple quick XP-style GUI questions

Status
Not open for further replies.

Sadus

Programmer
Apr 21, 2003
8
US
Hi,

I was just wondering which control in VB.NET (2002) is the control used to create the colapsable tool bar, like the tool bar you use to select which controls to place on forms in the VB.NET IDE. Is it maybe just a TreeView with a special style or is it a different control entirely?

Also, how do you make buttons have the fancy XP style look to them? No matter which FlatStyle I use my buttons always look like standard buttons, not the fancy XP style buttons. I also can't seem to find a way to use XP style scroll bars. I checked the FAQ here and couldn't find anything about this...

Thanks,
Jeremy
 
The XP style is by adding manifest file in same directory as exe file. OS must be XP and VB6 controls won't convert
Copy the following code to notepad and rename it

XXXX.exe.manifest (where XXXX is your programs name)





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




Button style must be set to system or they will retain old 3D style
 
Thanks!

Just in case anyone else comes across this thread - I also had to set my tab control to &quot;Normal&quot; for it to be XP style as well. For some reason the scrollbars were already XP style automatically, just not the buttons and tab control, but the .manifest file worked great.

Kind of funny that old &quot;legacy&quot; programs automatically started using XP style controls yet VB.NET which is such a new language requiers the special .manifest file :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top