Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing the foucs color of a combo box

Status
Not open for further replies.

GooDog

Programmer
Feb 11, 2002
34
IN
Hi,
Is it possible to change the default focus color of a combo box/List Box.Or making a border to the items in the combo box when the focus is made.If so please let me know how to do it.

Thanks in advance,
Prakash
 
<select onFocus="this.style = 'background-color: yellow;'" onBlur=="this.style = 'background-color: white;'">




also see thread215-769111

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook (No, I'm not Rick)

zen.gif
 
Hi mwolf00,
Thanks for the reply.It works fine.But my requirement is i am using a combo box filled with different colors(not codes).When selecting a color the defualt focus color ie the dark blue color hides the other colors in the combo box.I want to get rid of that default color.Is there any way to do it.Or a thin border around the focussed item in the drop down menu when focussing.

Regards,
Prakash
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top