The code below will add all the installed fonts to a ComboBox.
For this first drag and drop a combo box into your form from the toolbox and set it's name to comboBox1.
foreach (FontFamily f in FontFamily.Families)
{
//Add each font to comboBox1
comboBox1.Items.Add(f.Name);
}
Comments
Post a Comment