Solved

ComboBox change colour on an item

Posted on 2001-06-14
3
405 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

688 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