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

Posted on 2011-04-19
Last Modified: 2012-05-11
Can't figure out how to change the font used in my listview control. Appreciate any suggestions.
Question by:hallpett

    Accepted Solution

    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
    LVL 22

    Expert Comment

    by:Nico Bontenbal
    Or do it in design by right clicking the listview select 'listview ctrl object' and then Properties and the Font tab.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    In Debugging – Part 1, you learned the basics of the debugging process. You learned how to avoid bugs, as well as how to utilize the Immediate window in the debugging process. This article takes things to the next level by showing you how you can us…
    In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
    In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
    In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

    779 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

    11 Experts available now in Live!

    Get 1:1 Help Now