Office 2010 Silver theme

2 posts, 0 answers
  1. Eugene
    Eugene  avatar
    3 posts
    Member since:
    Feb 2014

    Posted 06 Mar 2014 Link to this post

    Hello colleagues,

    I am developing a themed application where trying support Office 2010 themes. The black and blue themes are drawn without artifacts. But I am stuck with the Silver theme. The form's background color differs from controls contained on the form. How can I set the same background color for the form?

    Please see the silver.png screenshot for more information.
  2. Dimitar
    Dimitar avatar
    1326 posts

    Posted 11 Mar 2014 Link to this post

    Hi Eugene,

    Thank you for writing.

    If I understand correctly you want to change the form BackColor for the Office2010Silver theme. This can be done by using Visual Style Builder (please refer to the attached image). Please note that the default color is "Control" and I am not sure to what color you want to change it.

    Also this can be done in code like this:
    this.BackColor = Color.FromKnownColor(KnownColor.ControlLight);

    The following articles are very useful when you need to edit the predefined themes with Visual Style Builder:

    Let me know if you have additional questions.


    DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

  3. DevCraft R3 2016 release webinar banner
Back to Top