Thread: Bold text in a list box

  1. #1
    Registered User
    Join Date
    Sep 2006
    Posts
    98

    Bold text in a list box

    Is it possible to make the text of just one item in a list box bold, or italic?

  2. #2
    Registered User
    Join Date
    Aug 2007
    Location
    Gloucester, England
    Posts
    11

    Smile DrawMode

    Probably the best way to do it is to draw the added items yourself.

    http://www.codeproject.com/cs/combob...&select=196903

    Regards

    Pete

  3. #3
    Registered User
    Join Date
    Sep 2007
    Location
    Adelaide, Australia
    Posts
    9
    You'll also find that the ListViewItem class (which represents an item in the list view - myListView.Items[7] for example) exposes a Font property, which you could set to be bold or italic etc.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. BN_CLICKED, change button style
    By bennyandthejets in forum Windows Programming
    Replies: 13
    Last Post: 07-05-2010, 11:42 PM
  2. Need help sorting a linked list. Beginner
    By scarlet00014 in forum C Programming
    Replies: 1
    Last Post: 09-27-2008, 06:16 PM
  3. read a text file and display the content into the list box
    By mr_empty in forum Windows Programming
    Replies: 10
    Last Post: 12-18-2007, 12:55 AM
  4. Replies: 6
    Last Post: 03-02-2005, 02:45 AM