473,395 Members | 1,535 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

DropDownList Colors

Bob
It appears to me that this control has the following
different default colors:
1. a forecolor of black
2. a backcolor of white
3. When the dropdown arrow is selected the controls
colors change automatically as follows:
The forecolor is White and the backcolor for the selected
item in the dropdown is blue but the rest of the dropdown
items in the list box are static with a black forecolor on
a white background.

Is their any way to set the forecolor of the selected item
to forecolor of white and the backcolor to blue AND keep
the rest of the items in the dropdown as black forecolor
on a white background?

I've played around with ClassCss but it effects the entire
control and not just the seelcted item.

Thanks

Bob
Nov 15 '05 #1
0 1222

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: krian | last post by:
Hi, How can I change the styles of the DropDownList(Select box)..? and also I want to place an image in the place of DropDownButton of Select Box .. How can i done these in DHTML..?. I would...
3
by: David | last post by:
Hi!! I'd like to dessing a DropDownList with 20 colors different among them and I don't want to appear the name of the color, only the color. The 20 color i'll take from a DatabBase, and on the...
0
by: Bob | last post by:
It appears to me that this control has the following different default colors: 1. a forecolor of black 2. a backcolor of white 3. When the dropdown arrow is selected the controls colors...
3
by: Julia | last post by:
Hi, is it possible to have different colors or fonts in each row in a DropDownList? If so, how do I do it? Thanks Julia
4
by: P. Yanzick | last post by:
Hello, I've been playing with master/detail views as well as editing in the gridview, and I ran across a strange problem that I am not exactly sure where to go to try to solve. I have 2...
0
by: Ben | last post by:
Hi, It's about a database containing (for simplifying) three fields: 'placenr' (primary key), 'place' and 'color'. The records are updatable (Edit/Update button) in a gridview. For updating the...
6
by: tshad | last post by:
Is there a way to set one item in a dropdown list to a different color? I have a case where I might have 15 items and one is a default and would like to set the default as green where all the...
7
by: =?Utf-8?B?UmVraGE=?= | last post by:
Hi, I am trying to change the font color for the items in a dropdownlist control at run time using ASP.NET 2.0. DropDownList1.Items.Attributes.Add("style", "color:red"); But when I run the...
10
by: Cliff Cotterill | last post by:
I've tried multiple ways of setting the background-color of a DropDownList, but none seem to work. How can the color be set? I've tried setting the BackGroundColor of the DrowDownList component,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.