Discussion:
Windows XP control themes in Office 2007
(too old to reply)
Jurciu
2006-12-05 19:49:14 UTC
Permalink
Hi,
I have COM Addin developed for Office 2003 (managed code called via
unmanaged shim) that uses dialogs with controls. In order to make the
controls look like WinXP controls I have added manifest files (for example
Winword.exe.manifest) that looks like the one below. This no longer works
with Office 2007 and my controls look like Windows 2000 controls.
How do I enable Windows XP control themes for my dialogs shown from within
COM Addin for Word/PP/Excel 2007.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<description>WINWORD</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="X86"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
</assembly>
XL-Dennis
2006-12-05 20:48:00 UTC
Permalink
In my previously I forgot to add that the snippet code is for VS.NET 2005.

---------------
With kind regards,
Dennis
Weekly Blog .NET & Excel: http://xldennis.wordpress.com/
My English site: http://www.excelkb.com/default.aspx
My Swedish site: http://www.xldennis.com/
Hi,
Which version of Visual Studio.NET do You use?
System.Windows.Forms.Application.EnableVisualStyles()
System.Windows.Forms.Application.DoEvents()
HOWTO: Creating and Deploying Managed COM add-ins with VB.NET 2005 - Part II
http://www.excelkb.com/article.aspx?id=10198&cNode=4K2U2U
---------------
With kind regards,
Dennis
Weekly Blog .NET & Excel: http://xldennis.wordpress.com/
My English site: http://www.excelkb.com/default.aspx
My Swedish site: http://www.xldennis.com/
Jurciu
2006-12-05 23:34:24 UTC
Permalink
It didn't seem to work for VS.NET 2003 that I am using.
Jurciu
Post by XL-Dennis
In my previously I forgot to add that the snippet code is for VS.NET 2005.
---------------
With kind regards,
Dennis
Weekly Blog .NET & Excel: http://xldennis.wordpress.com/
My English site: http://www.excelkb.com/default.aspx
My Swedish site: http://www.xldennis.com/
Hi,
Which version of Visual Studio.NET do You use?
System.Windows.Forms.Application.EnableVisualStyles()
System.Windows.Forms.Application.DoEvents()
HOWTO: Creating and Deploying Managed COM add-ins with VB.NET 2005 - Part II
http://www.excelkb.com/article.aspx?id=10198&cNode=4K2U2U
---------------
With kind regards,
Dennis
Weekly Blog .NET & Excel: http://xldennis.wordpress.com/
My English site: http://www.excelkb.com/default.aspx
My Swedish site: http://www.xldennis.com/
Jurciu
2006-12-12 17:50:40 UTC
Permalink
I case somebody has the same problem, this is how I got it resolved:
830033: How to apply Windows XP themes to Office COM add-ins

http://support.microsoft.com/Default.aspx?id=830033

Jurciu
Jurciu,
Yes, it's true that it won't work with VS.NET 2003.
I did some test myself with a COM Add-in created with VB 6.0 and using a
XPStyle API.
I noticed that each tools in Office 2007 has a Manifest-file in the same
directory as the hostapplications exe files.
First I made a test without adding my own manifest file but without any
luck. Second I removed the present Manifest file with my own and Excel
refused to start.
I took a look and added some expressions to the existing Manifest file but
without any success (I'm still learning about the XML structure).
I hope someone from MSFT can add some knowledge to it in this thread or
any
other of the more regular posters.
---------------
With kind regards,
Dennis
Weekly Blog .NET & Excel: http://xldennis.wordpress.com/
My English site: http://www.excelkb.com/default.aspx
My Swedish site: http://www.xldennis.com/
Loading...