Solved

ComboBox change colour on an item

Posted on 2001-06-14
3
394 Views
Last Modified: 2010-05-02
Is it possible to change an/some items in a combobox foreground/background colour?
0
Comment
Question by:chnelson
3 Comments
 
LVL 1

Accepted Solution

by:
kdg2000 earned 10 total points
ID: 6190215
In ComboBox it is possible to change foreground/background colour. But only the colours will vary for all units.
      Combo1. BackColor
      Combo1. ForeColor
For separate units it is possible to change colour only in ListView and TreeView. Try to look for components of other manufacturers.
0
 
LVL 43

Expert Comment

by:TimCottee
ID: 6190310
kdg2000, you should remove your address details from your profile. It is recommended by EE not to include such personal information in a public location. Your EMail address in the profile is normal but a precise address is not a good idea. Also you are right to an extent in your answer however it is possible if you subclass the combo box to change the colour/font etc of individual rows in a combobox. I was going to post a comment in this question originally before it was PAQ'd but had to go into a meeting. Anyway hope it helps (after the fact perhaps but there you go).
0
 
LVL 1

Author Comment

by:chnelson
ID: 6191602
TimCottee,

how to "subclass" the combo box to change the colour/font of individual rows in a combobox?

i am really want to know the details.

i would like to re-post the question again.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

832 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