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?

[Webinar] Streamline your web hosting managementRegister Today

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 new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
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
All Courses

From novice to tech pro — start learning today.