Font names in Combobox using C#.Net

Naraayanan
Posted by Naraayanan under C# category on | Points: 40 | Views : 5382
Today , we will learn to all font Names into ComboBox in the C#.net .

Declare a Namespace
using System.Drawings.Text

call the code in the Form Load or any where in the Program:

  InstalledFontCollection inst = new InstalledFontCollection();
foreach (FontFamily fnt in inst.Families)
{
comboBox1.Items.Add(fnt.Name);
}

Comments or Responses

Login to post response