${res:Templates.Project.WindowsApplication.Name}
C#
${res:Templates.File.Categories.WindowsApplications}
C#.Project.Form
${res:Templates.Project.WindowsApplication.Description}
v2.0;v3.5Client
WinExe
Properties
/// Class with program entry point.
///
internal sealed class Program
{
///
/// Program entry point.
///
[STAThread]
private static void Main(string[] args)
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new MainForm());
}
}
}
]]>
/// Description of MainForm.
///
public partial class MainForm : Form
{
public MainForm()
{
//
// The InitializeComponent() call is required for Windows Forms designer support.
//
InitializeComponent();
//
// TODO: Add constructor code after the InitializeComponent() call.
//
}
}
}
]]>
/// Designer variable used to keep track of non-visual components.
///
private System.ComponentModel.IContainer components = null;
///
/// Disposes resources used by the form.
///
/// true if managed resources should be disposed; otherwise, false.
protected override void Dispose(bool disposing)
{
if (disposing) {
if (components != null) {
components.Dispose();
}
}
base.Dispose(disposing);
}
///
/// This method is required for Windows Forms designer support.
/// Do not change the method contents inside the source code editor. The Forms designer might
/// not be able to load this method if it was changed manually.
///
private void InitializeComponent()
{
//
// MainForm
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Text = "${ProjectName}";
this.Name = "MainForm";
}
}
}
]]>