Set Application Back colors based on Office Theme

  • Thread starter Thread starter Ponnu
  • Start date Start date
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
 
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.
 
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
 
Back
Top