Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

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

How do I bold the font in a listview?

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
indy500fan
Asked:
indy500fan
1 Solution
 
planoczCommented:
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
 
indy500fanAuthor Commented:
Planocz,

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

Thanks!

Eric
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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