Solved

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

Posted on 2006-06-28
4
408 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
In this post we will learn different types of Android Layout and some basics of an Android App.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

732 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