Disable Combobox forecolor

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

Assisted Solution

by:Sreedhar Vengala
Sreedhar Vengala earned 60 total points
ID: 24191462
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

ID: 24191630
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

ID: 24191640
I also tried

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

but not worked
LVL 48

Accepted Solution

jpaulino earned 90 total points
ID: 24191772

Author Closing Comment

ID: 31572590
Thanx, done

Featured Post

NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses

862 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