Solved

How do I bold the font in a listview?

Posted on 2008-06-17
2
2,268 Views
Last Modified: 2008-06-17
Friends,

This, I think is a simple question, but I just can't find it...

How do I bold the font in a listview programmatically?

         li = frmTimelineSerial.lvFF.Items.Add(Row.CarNumber & " - L")
                        li.BackColor = Color.White
                        li.ForeColor = Color.Black
                        li.Font.Style = FontStyle.Bold???

Thanks in advance!
Regards,
Eric
0
Comment
Question by:indy500fan
2 Comments
 
LVL 27

Accepted Solution

by:
planocz earned 500 total points
ID: 21804403
Sample:
 
With Listview1
                .Items.Add("Help Me")
               .Items(0).BackColor = Color.WhiteSmoke
              .Items(0).ForeColor = Color.Green
              .Items(0).Font = New Font("Courier New", 12, FontStyle.Bold)
End With
0
 

Author Comment

by:indy500fan
ID: 21804448
Planocz,

li.Font = New Font("Courier New", 12, FontStyle.Bold) worked!

Thanks!

Eric
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Tabcontrol Caption? 1 29
Events in static methods 3 50
Getfiles in vb.net 28 42
Populating an array of locale_time_info 8 37
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…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

911 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

19 Experts available now in Live!

Get 1:1 Help Now