Solved

How do I bold the font in a listview?

Posted on 2008-06-17
2
2,222 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

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…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

760 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

20 Experts available now in Live!

Get 1:1 Help Now