.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Code Snippets >> Generics >> Post New Resource Bookmark and Share   

 Subscribe to Code Snippets

Font names in Combobox using C#.Net

Posted By:Narayanan       Posted Date: March 26, 2012    Points: 25    Category: Generics    URL: http://www.dotnetspark.com  

Today , we will learn to get Font names into Combobox using in 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);
}

     

Further Readings:

Responses

No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More code samples in C#, ASP.Net, Vb.Net and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend