Solved

Different formats in a listbox

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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This video discusses moving either the default database or any database to a new volume.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

762 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

21 Experts available now in Live!

Get 1:1 Help Now