static void Main() { example form = new example(); form.InitializeGraphics(); form.Show(); while (form.Created) { // Set the initial size of our form form.ClientSize = new System.Drawing.Size( 400, 400 ); // And its caption form.Text = "Nothing at 1500 FPS!"; form.Render(); Application.DoEvents(); //Let the OS handle what it needs to } }
static void Main() { example form = new example(); form.InitializeGraphics(); form.Show(); while (form.Created) { // Set the initial size of our form form.ClientSize = new System.Drawing.Size(400, 400); // And its caption form.Text = "Nothing at 1500 FPS!"; form.Render(); Application.DoEvents(); //Let the OS handle what it needs to } }