Solved

ComboBox change colour on an item

Posted on 2001-06-14
3
399 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
to transfer string from C lanaguage to VBA 4 72
VBA filters 2 65
VB6 common control 6 sp6 object library not registerd 3 22
checkbox to hide entire section 10 42
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

828 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