[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

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

How can I set the font in a listview control used in a form.

Can't figure out how to change the font used in my listview control. Appreciate any suggestions.
0
hallpett
Asked:
hallpett
1 Solution
 
maratmuCommented:
Dim myfont As StdFont
Set myfont = New StdFont

    With myfont
        .Bold = True
        .Name = "Arial"
        .Size = 20
    End With
   
    Set listview1.Font = myfont
    Set myfont = Nothing
0
 
Nico BontenbalCommented:
Or do it in design by right clicking the listview select 'listview ctrl object' and then Properties and the Font tab.
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

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