Re: XP Themes and IE

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Ying-Shen Yu[MSFT] (v-yiy_at_online.microsoft.com)
Date: 07/13/04


Date: Tue, 13 Jul 2004 02:41:19 GMT

Hi Wells,

In .NET v1.0 and v1.1 you will need to do custom activation context
management to get visual styles for IE host scenario, however it needs some
P/Invoke which needs the Unmanaged code permission to work properly, You
may read this blog to know more about how windows forms implements the
visual style support in EnableVisualStyle method:
http://blogs.msdn.com/rprabhu/archive/2003/09/28/56540.aspx

If it's ok to have the Unmanaged Code permission in your application,
please let me know, I can send you a sample for how to create the
activation context management.

In .NET v2.0 you may use Application.EnableVisualStyle to enable visual
style in IE host scenario.

Thanks!
Best regards,

Ying-Shen Yu [MSFT]
Microsoft Community Support
Get Secure! - www.microsoft.com/security

This posting is provided "AS IS" with no warranties and confers no rights.
This mail should not be replied directly, please remove the word "online"
before sending mail.