Articles in this section

How to get color from ManagedColorTable and use it in our controls?

Color schemes

You can get the ManagedColorTable for use in other controls using GetColorTable() method of Office2007Colors class.

C#

Office2007Colors.ApplyManagedColors(this, Color.Red);
color = Office2007Colors.GetColorTable(Office2007Theme.Managed).ActiveFormBorderColor;
this.textBox1.BackColor = color;
this.checkBox1.BackColor = color;

 

VB

Office2007Colors.ApplyManagedColors(Me, Color.Red)
color = Office2007Colors.GetColorTable(Office2007Theme.Managed).ActiveFormBorderColor
Me.textBox1.BackColor = color
Me.checkBox1.BackColor = color

Reference link: https://help.syncfusion.com/windowsforms/office2007form/color-schemes

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied