Lable Dissapre

3 posts, 0 answers
  1. Dasash
    Dasash avatar
    3 posts
    Member since:
    Nov 2010

    Posted 24 Nov 2010 Link to this post

    HI ,
    I am using in my winform app (Version Telerik Q3) in your Defult (Black Office And Windows 7)Theam And Whan i Run The app on Win Xp all lables are dissapre ,
    when i Modify the Window Color Scheme To Silver The Lables Are Appering -On WIndow 7 Or Xp The Problome Dont Exist
  2. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 24 Nov 2010 Link to this post


    I don't have a Windows XP system to try this on, but my initial thought is that you have the back colour of the control set to one of the system background colours that match your PC. Have a look at the back colour for the label and if it is set to one of the system colours, try changing it to transparent. Are you able to replicate this if you run the code on a different XP machine?

  3. DevCraft R3 2016 release webinar banner
  4. Ivan Petrov
    Ivan Petrov avatar
    701 posts

    Posted 29 Nov 2010 Link to this post

    Hello Dasash,

    Thanks for writing.

    RadLabels take their ForeColor value from the ForeColor property of the parent control. Commonly, this is your Form where the ForeColor is ControlText hence the actual color depends on the theme of your Windows.

    You can two options in this case:
    • Set the ForeColor of the form to an appropriate value that matches the style of your application. Such a value could be Black or White.
    • Edit the Office2007Black/Windows7 theme using our Visual Style Builder tool. You can follow these steps in order to open, edit and save our predefined themes. When you set the ForeColor of the RadLabelElement or its TextPrimitive to a value of the Color enumeration, the color of your RadLabels will no longer depend on the color of the form.

    I hope you find this information useful. If you have additional questions, feel free to contact me.

    Ivan Petrov
    the Telerik team
    Get started with RadControls for WinForms with numerous videos and detailed documentation.
Back to Top