Solved

Different formats in a listbox

Posted on 2004-10-13
1
155 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

776 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