Solved

How do I bold the font in a listview?

Posted on 2008-06-17
2
2,452 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Suggested Courses

623 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