h1.post-title { color:orange; font-family:verdana,Arial; font-weight:bold; padding-bottom:5px; text-shadow:#64665b 0px 1px 1px; font-size:32px; } -->

Pages

Font names in Combobox using C#.Net

Declaration Part:


Using System.Drawings.Text





Code for getting font name into ComboBox :

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







No comments:

Post a Comment