Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to add all the system font name in Combobox in Windows Form Application.

Pls help me out asap...

Thanks
Posted

1 solution

You can use this code:
C#
foreach (FontFamily font in System.Drawing.FontFamily.Families)
{
    comboBox1.Items.Add(font.Name);
}
 
Share this answer
 
v4
Comments
[no name] 11-May-12 0:02am    
Dude i want to add in Combobox..
this thing i also know, but how do i add this Combobox????
JF2015 11-May-12 0:07am    
Updated to match your request.
[no name] 11-May-12 0:11am    
Thanks man.. It works..
i was stuck in generating array...
thnks:)
JF2015 11-May-12 0:12am    
So, please mark the Answer as "Solution". Thanks!
member60 11-May-12 0:27am    
my 5!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900