Home

Fonts in a Combo Box

private void Form1_Load(object sender, System.EventArgs e)
{
	InstalledFontCollection colFonts = new InstalledFontCollection();
	FontFamily[] fontFamilies = colFonts.Families;

	for(int i = 0; i < fontFamilies.Length; i++)
		 this.cboFonts.Items.Add(fontFamilies[i].Name);

	 this.cboFonts.Text = "Times New Roman";
}

Home Copyright © 2005-2012 FunctionX