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 / September 2004

Tip: Looking for answers? Try searching our database.

XP visual styles

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
GregL - 24 Sep 2004 21:21 GMT
How do I enable XP visual styles for a custom Tool Window?

I am using VSIP 2003 w/extras. The implementation is C#. I am attaching a
UserControl to a VS Tool Window -  FlatStyle properties are set, etc. When in
a standalone app using Application.EnableVisualStyles, everything is fine.
What do I need to get XP styles in VSIP?

Greg
"Ed Dore [MSFT]" - 27 Sep 2004 21:37 GMT
Hi Greg,

Looks like the office folks already figured this out out. I found the
following blog from Reghavendra Prabhu describing the necessity of  
creating an activating an activation context:

 
http://blogs.gotdotnet.com/rprabhu/PermaLink.aspx/6b1a5495-c790-4e2f-972f-af
b01f0164cf

I was going to write up a sample myself to do this for another customer,
but found the following KB article, which beat me to it. It applies to
Office addin's. But I suspect the same technique will work with your addin
as well. You just need to use that using(new EnableThemingInScope) trick
around the creation of your control or dialog.

  http://support.microsoft.com/default.aspx?scid=kb;en-us;830033

Sincerely,
Ed Dore
Microsoft Developer Support
(425)704-2048
mailto:eddo@microsoft.com

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.