Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Toolstrip (obsolete as of Q3 2010) > Rad Toolstrip Label Forecolor

Answered Rad Toolstrip Label Forecolor

Feed from this thread
  • Amanda Intermediate avatar

    Posted on Nov 6, 2009 (permalink)

    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

    Reply

  • Answer Martin Vasilev Martin Vasilev admin's avatar

    Posted on Nov 11, 2009 (permalink)

    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.

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Toolstrip (obsolete as of Q3 2010) > Rad Toolstrip Label Forecolor
Related resources for "Rad Toolstrip Label Forecolor"

[ Features | Demos | Documentation | Knowledge Base | Telerik TV | Code Library | Step-by-step Tutorial | Blogs | Self-Paced Trainer ]