Solved

Different formats in a listbox

Posted on 2004-10-13
1
157 Views
Last Modified: 2010-04-23
I was wondering if it is possible to have one line in a listbox be bold and another be regular.  I'm changing the listbox like this:

lbxEmails.Font = New Font(lbxEmails.Font, FontStyle.Bold)
 
and its changing the entire listbox.  any ideas?  thanks!!!

Kevin
0
Comment
Question by:kevinmeredith
1 Comment
 
LVL 44

Accepted Solution

by:
Arthur_Wood earned 20 total points
ID: 12303619
no, you cannot change the text attributes (Font, size, color) of a list box, line by line.  Those properties, as you have found, apply to the ListBox control as a whole.

AW
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

Suggested Solutions

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

808 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