[vc++ .net 2005] changing color of disabled button?

Posted on 2007-07-31
Last Modified: 2013-11-26
Hi all,

I have a button that can be enable or disable. When it's disabled, only the text color on the button changes from black to grey. But, I want more noticible change when button is disabled. Is there any way to make it noticible? I was thinking to change the color of the button itself. Does anyone know how to do? Any other method is welcomed too.

Question by:shinymoon
    LVL 19

    Accepted Solution

    I this a .NET form (just do set the BackColor property of the button - like "button1->BackColor = System::Drawing::Color::CadetBlue;") or something else?
    LVL 96

    Assisted Solution

    by:Bob Learned
    The problem is going to be when you set Enabled = false, then you can't change the text color.  Another problem is that when FlatStyle = System, then you can't change the BackColor for the button.


    Author Comment

    okay. I see. I'll try many ways based on the comments. Thanks a lot~

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    In my previous article ( we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
    In my previous two articles we discussed Binary Serialization ( and XML Serialization ( In this article we will try to know more about SOAP (Simple Object Acces…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now