Solved

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

Posted on 2006-06-28
4
406 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

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

Suggested Solutions

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
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 …

821 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