Skip to content

Instantly share code, notes, and snippets.

@bagobor
Created January 29, 2013 19:41
Show Gist options
  • Save bagobor/4667062 to your computer and use it in GitHub Desktop.
Save bagobor/4667062 to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace test_custom_loop
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
using (Form1 form = new Form1())
{
form.Show();
while (form.Visible) {
Application.DoEvents();
form.Update();
}
}
//Application.Run();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment