public partial class Form1 : Form { private class Item { public string Name; public string Value; public Item(string name, string value) { Name = name; Value = value; } public override string ToString() { return Name; } } public Form1() { InitializeComponent(); foreach (System.Drawing.FontFamily f in System.Drawing.FontFamily.Families) { Item item = new Item(f.Name, f.Name); comboBox1.Items.Add(item); } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)