Is there an event I can register from my VSTO application that is fired when the theme of Word 2007 is changed?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As crauscher said, Office doesn’t seem to trigger any public event when the theme for an Office 2007 application is changed by the user.
The easiest you could do is to poll the registry key at regular intervals to see if there was a change:
Where Theme is
1for Blue,2for Silver and3for the Black scheme.This article gives you some C# code you can use and modify: Setting the BackColor to match the Office 2007 color scheme