Get list of installed fonts - Visual Basic .NET

Tags: VB.NET, VB 2008, VB 2010, VB 2012, VB 2013

Requirements: 1 list box and 1 button:
Get list of installed fonts- vb.net

Go to the code page and add the following declaration:
Imports System.Drawing.Text

Get Fonts Button Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) _
 Handles Button1.Click
        Dim fonts As New InstalledFontCollection
 
        For Each one As FontFamily In fonts.Families
            ListBox1.Items.Add(one.Name)
        Next
 
End Sub


Share This

Home | About | Contact | Privacy Policy

Copyright visual-basic-tutorials.com 2017 - All Rights Reserved.