Solved

Selected field color

Posted on 2004-10-18
6
187 Views
Last Modified: 2010-04-15
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
0
Comment
Question by:stanuf
  • 3
  • 2
6 Comments
 
LVL 9

Accepted Solution

by:
msdixon earned 250 total points
Comment Utility
use the system colors. for instance you can select SystemColors.ControlText for the fore color.
0
 

Author Comment

by:stanuf
Comment Utility
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
 
LVL 6

Expert Comment

by:der_jth
Comment Utility
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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

Author Comment

by:stanuf
Comment Utility
Bummer -- Do you know what windows display setting it uses?  I guess I could just change that when I do the install.....
0
 
LVL 6

Expert Comment

by:der_jth
Comment Utility
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
 

Author Comment

by:stanuf
Comment Utility
Thanks for the info!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

762 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now