Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Extensibility / October 2004

Tip: Looking for answers? Try searching our database.

XP styles in a ToolWindow

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
GregL - 29 Sep 2004 18:31 GMT
Using VSIP 2003 w/Extras in C#...

I have a custom Tool Window hosting a UserControl. FlatStyle properties for
child controls are set. If the UserControl is hosted in a standalone app
using Application.EnableVisualStyles, it looks 'XP'. However, if the control
is in a VS Tool Window, no XP styles.

How do I get XP visual styles in a Tool Window? Thanks.

Greg
Aaron Brethorst [MSFT] - 14 Oct 2004 06:25 GMT
Hey Greg -
In Visual Studio 2005, we have XP visual style support a very high priority,
however this is unsupported under VS 2003. In order for an application to get
the XP Look+Feel, your application needs to tell Windows to use ComCtl v6
when available. This can be accomplished by using the EnableVisualStyles()
method in managed code, or by creating a manifest file with either native or
managed applications.

If you try running your tool window under VS2005 Beta 1 you should find that
it picks up XP visual styles just like it does when running in a standalone
app. Unfortunately, this won't ever be supported under 2003.

Cheers,
Aaron Brethorst
User Experience Program Manager
Visual Studio Core - Platform Team

> Using VSIP 2003 w/Extras in C#...
>  
[quoted text clipped - 6 lines]
>  
> Greg
Greg - 14 Oct 2004 16:33 GMT
Thanks, Aaron. I thought that may be the case. Just looking for the "official
word". I had it working in a standalone app, but couldn't get it VS2003.
Greg

> Hey Greg -
> In Visual Studio 2005, we have XP visual style support a very high priority,
[quoted text clipped - 23 lines]
> >  
> > Greg

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.