Solved

adding background-colour to a selected ListBox-item in c#

Posted on 2006-06-28
4
404 Views
Last Modified: 2010-04-17
How do I add background-colour to a selected ListBox-item, and how
do I easily maintain this background-state after Page_Load?
0
Comment
Question by:jenniferw
  • 3
4 Comments
 
LVL 30

Expert Comment

by:callrs
ID: 17002434
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=504601&SiteID=1

For HTML listboxes, or other? I can help you with HTML..
0
 
LVL 30

Accepted Solution

by:
callrs earned 500 total points
ID: 17002694
C#! ok
http://www.thescarms.com/dotNet/CustomListBox.asp            Change the Color of Individual ListBox items in .NET.
http://www.codeproject.com/cs/miscctrl/ColorComboBox.asp  Selecting colors with a combo box.
http://www.exforsys.com/content/view/1298/240/                  Working with Web Forms Controls and C#
http://www.c-sharpcorner.com/Code/2003/July/DropDownListBox.asp  Working with DropDownList and ListBox Controls in ASP.NET
http://msdn2.microsoft.com/en-us/system.windows.forms.control.defaultbackcolor.aspx (Get color only)
http://www.dnzone.com/showDetail.asp?TypeId=2&NewsId=1328 (C++?)  Advanced ListBox with color items and icons.
0
 

Author Comment

by:jenniferw
ID: 17004244
Sorry for not answering. Thank´s a lot for helping me...
0
 
LVL 30

Expert Comment

by:callrs
ID: 17004462
Welcome.

Were you able to add color?

I said "C#! ok" cause I saw that later in your Question. lol
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

A short article about a problem I had getting the GPS LocationListener working.
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

757 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

19 Experts available now in Live!

Get 1:1 Help Now