Creating a .NET Windows Installer – Part 1 - The Sample Project (Page 4 of 14 )
In this article we will create an installer for the .NET project shown below.
This simple application allows the user to choose a font from a drop-down list. The font is drawn onto the form surface in a Paint event handler. The form code (aside from the Windows designer region) is shown below:
public class main : System.Windows.Forms.Form { private void main_Load(object sender, EventArgs e) { InstalledFontCollection fonts = new InstalledFontCollection(); foreach (FontFamily family in fonts.Families) { lstFonts.Items.Add(family.Name); } }