All pastes #359130 Raw Edit

zeroflag

public text v1 · immutable
·published 2007-02-16 15:39 UTC
rendered paste body
	static class Program
	{
		/// <summary>
		/// The main entry point for the application.
		/// </summary>
		[STAThread]
		static void Main()
		{
			Application.EnableVisualStyles();
			Application.SetCompatibleTextRenderingDefault(false);
			using (ApplicationContext context = new ApplicationContext())
			{
				using (Form1 form = new Form1())
				{
					form.FormClosed += delegate(object sender, FormClosedEventArgs e) { context.ExitThread(); };
					Application.Run(context);
				}
			}
		}

	}