Rad Toolstrip Label Forecolor

Thread is closed for posting
2 posts, 1 answers
  1. Amanda
    Amanda avatar
    173 posts
    Member since:
    Sep 2007

    Posted 06 Nov 2009 Link to this post

    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

  2. Answer
    Martin Vasilev
    Martin Vasilev avatar
    1061 posts

    Posted 11 Nov 2009 Link to this post

    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.
Back to Top