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?

Improve company productivity with a Business Account.Sign Up

x
 
msdixonConnect With a Mentor Commented:
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
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
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.