473,383 Members | 1,788 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,383 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 1221

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,...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.