Set Application Back colors based on Office Theme

P

Ponnu

Hi,

I am developing an addin to outlook 2007 and would like to set my form and
other control backgrounds based on the user's office theme(Blue, Silver,
Black). I could get the user's office selected theme from registry.

Could someone suggest a best way of applying this selecting theme to the
controls in my application?

Thanks & Regards
Ponnu
 
K

Ken Slovak - [MVP - Outlook]

You can't apply a theme to colors in Outlook form controls, if that's what
you're asking about. You'd have to read the color as an RGB color value and
apply that to the backcolor properties of your controls. Same thing goes for
any other controls you are using.
 
P

Ponnu

Hi Ken,

Yes, I have RGB equivalents for all the three themes.

Is the only way to set the background color for all my controls in the addin
like my form, grid and other controls?

or is there a way so I could set the RGB color in one place and all my
controls would inherit them.

Thanks & Regards
Ponnu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top