Changing Button Color when pressed

  • Thread starter Thread starter PS
  • Start date Start date
P

PS

All

Had a quick question since couldnt find any resource links on this.

I have a requirement where in when a button (which I create on
Inspector) has a particular color (lets say Red) when pressed - so
that it is highlighted to the user

Can this be doable? If so please let me know how.

I am using C#, VSTO 2005 for devloping the OutlookAddin.

As a side note -

Thanks
Pratik
 
So this is for Outlook 2003 or earlier?

You can track the State property of a button. Depending on what values and
colors you want for up and down states you can change the Picture and Mask
properties of the button or you can use the clipboard and use PasteFace to
change the color. That would be done in the button's Click event handler.
 
Back
Top