How can I fill a combo-box with a list of all the available fonts in the system?
You can use System.Drawing.FontFamily.Families
to get the available fonts.
List<string> fonts = new List<string>(); foreach (FontFamily font in System.Drawing.FontFamily.Families) { fonts.Add(font.Name); } // add the fonts to your ComboBox here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With