Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 165
  • Last Modified:

Different formats in a listbox

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
kevinmeredith
Asked:
kevinmeredith
1 Solution
 
Arthur_WoodCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now