i have a textbox and listbox listbox show all of the font in the system. Textbox use for enter a string. i don't know when user click any item in list box then font of the textbox will be changed. and mycode only use to show all of font in system. i'm newbie
private void Form1_Load(object sender, EventArgs e)
{
InstalledFontCollection fonts = new InstalledFontCollection();
try
{
foreach (FontFamily font in fonts.Families)
{
FontListBox.Items.Add(font.Name);
}
}
catch (Exception)
{
MessageBox.Show(e.ToString());
}
}