This is a migrated thread and some comments may be shown as answers.

Rad Toolstrip Label Forecolor

1 Answer 100 Views
Toolstrip (obsolete as of Q3 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Amanda
Top achievements
Rank 2
Amanda asked on 06 Nov 2009, 05:31 PM
Hi All,

I am wondering how to programable change the ForeColor of a toolstrip label. The following code does not work.

tslMode.ForeColor = Color.Red

Thanks in advance
Mark

1 Answer, 1 is accepted

Sort by
0
Accepted
Martin Vasilev
Telerik team
answered on 12 Nov 2009, 12:35 AM
Hi mmassey,

Thank you for writing.

You can change the ToolStripLabel text color through TextPrimitive's ForeColor property:
((TextPrimitive)this.radToolStripLabelElement1.Children[0]).ForeColor = Color.Red;

Write me back if you have any other questions.

Kind regards,
Martin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Toolstrip (obsolete as of Q3 2010)
Asked by
Amanda
Top achievements
Rank 2
Answers by
Martin Vasilev
Telerik team
Share this question
or