Disable Combobox forecolor

Posted on 2009-04-20
Last Modified: 2013-12-17
I need black forecolor in a disabled combobox. Is it possible?
Question by:Amitava_Mukherjee
    LVL 9

    Assisted Solution

    by:Sreedhar Vengala
    All you need to do is say
    combobox1.ForeColor = Color.FromName("Black");

    It doesn't matter if the control is disabled or not, it should change the foreground color.

    Author Comment

    sorry, does not work. I am using VB.Net 2008 express. I use

    cboExtn.ForeColor = Color.Black

    do not work when the form is disabled.

    Author Comment

    I also tried

    cboExtn.ForeColor = Color.FromName("Black")

    but not worked
    LVL 48

    Accepted Solution


    Author Closing Comment

    Thanx, done

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    It’s quite interesting for me as I worked with Excel using for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
    Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    737 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

    20 Experts available now in Live!

    Get 1:1 Help Now