Selected field color

Hi I have a c#.net project and I am wondering how to change the selected color of a field.  For example I have a form that has two drop down list.  The font color is black.  When I install this on my client's machine they have different color settings and when they go in the drop down list the color that selects the item in the list is a dark blue.  Is there a way to specify this so that it doesn't use the users computer setting but always uses the color I want.  Seems to be is would be a simple thing to change, but I just can't figure out where it is.

Thanks,
Stacy
stanufAsked:
Who is Participating?
 
msdixonCommented:
use the system colors. for instance you can select SystemColors.ControlText for the fore color.
0
 
stanufAuthor Commented:
It's not the forcolor that I want to change -- that stays black.  What I want to change is when you enter the field it highlights it and the highlight color is the one I want to change.
0
 
der_jthCommented:
The default WinForms combobox does not allow for customizing that color, unfortunately. You could derive your own subclass and paint the combo yourself, but it's rather cumbersome.
0
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

 
stanufAuthor Commented:
Bummer -- Do you know what windows display setting it uses?  I guess I could just change that when I do the install.....
0
 
der_jthCommented:
Control panel / Display / Appearance / Advanced / Item: Selected items - but I'm not sure it's a good idea to make that change upon installation. You're likely to cause quite a shock for the user!
0
 
stanufAuthor Commented:
Thanks for the info!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.