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 8345745
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T06:46:54+00:00 2026-06-09T06:46:54+00:00

I have a button on a form, currently drawn using Visual Styles which on

  • 0

I have a button on a form, currently drawn using Visual Styles which on a Win7 machine is drawn using a round-ish shading gradient and a hover highlight in blue.

The word from on high is that this button, which controls whether a particular feature is on or off, should look green and highlight greener when the feature is on, and look red and highlight redder when the feature is off, without losing the overall default visual style for the button. If we simply set the BackColor we get an unshaded, untinted button that highlights around the border in the Win7 default azure.

Unfortunately this is WinForms and not WPF so I don’t have advanced style control, and we’re not going WPF just yet. Is there anything I can use out of the box to change the colors used by Windows Visual Styles for this one button?

EDIT: In the interest of time, I created a WPF user control with a Button, hosted in the WinForm, allowing for the advanced style and storyboard control needed. It works. I am still curious as to how this could have been done in GDI, especially as I didn’t get everything I wanted with WPF either, but I have a working solution.

  • 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-06-09T06:46:55+00:00Added an answer on June 9, 2026 at 6:46 am

    If you Leave UseVisualStyleBackColor false and specify a BackColor manually with partial alpha such as “64, 255, 0, 0” the color is blended with the visual style background, and the standard theme gradient will appear tinted that color. I’m not sure if this works in Windows < 7.

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

Sidebar

Related Questions

I currently have a simple form that when you click the save button will
i have a form button in the form,which i need to perform basic action
I have button which post values of form to url but during post i
I have a button which creates form elements on click . My addelement function
I am currently writing a ContentManager in ASP.NET. I have a preview button which
I have... a dynamic populated select box several input boxes a submit button form
I have a unique situation over here. I have a button on a form
I am stuck at a small problem. I have this button within a form
This is probably a basic html/css question... I have a simple one-button form that
Inside a form I have a button. What is the difference between when I

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.