Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4563118
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T18:18:45+00:00 2026-05-21T18:18:45+00:00

How can I set the BackgroundColor of a Control (Panel) so that it is

  • 0

How can I set the BackgroundColor of a Control (Panel) so that it is the same Color as my user’s Windows Theme Color?

I found this:
Changing Theme(Color) of a panel according to Windows themes

And I’m sorry, but I don’t think those answerer’s even bothered to check what they said. Setting the Control’s BackgroundColor to Control, does not make it the same color as the Theme Color. It simply gives it a nice Gray-ish looking color.

I want to know what Color the Glass is in Windows Vista/7. How can I get this info at runtime?

Thank you

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T18:18:45+00:00Added an answer on May 21, 2026 at 6:18 pm

    To modify the background color of your Panel so it matches the window color defined in the theme, you can do:

    yourPanel.BackColor = SystemColors.Window;
    

    To obtain the glass color on Windows Vista and higher, you have to p/invoke DwmGetColorizationColor().

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How do I set this up so that I can manipulate $backgroundcolor = #00FFFF;
How can we set border and background color in the WPF grid control ,
General purpose I am developing a .NET user control that can be used for
I am wondering how I can set the backgroundColor of my UIView to the
Normally with Java Swing you can set the background color of a button with:
You can set the Vim color scheme by issuing :colorscheme SCHEME_NAME but, oddly enough,
I can set the event on the calendar on my device by using this
In Photoshop you can set a layer's blending mode to be Hue. If that
I know you can set the BackgroundColor to alternate between two colors with a
I know that Python, unlike Java, supports inheritance. But does a user class can

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.