private void Form1_Resize(object sender, EventArgs e) { if (game != null) { panel1.Size = new Size(this.Size.Width - 36, this.Size.Height - 70); g = panel1.CreateGraphics(); game.resize(panel1.Height, panel1.Width); Invalidate(true); } }
private void Form1_Resize(object sender, EventArgs e) { if (game != null) { panel1.Size = new Size(this.Size.Width - 36, this.Size.Height - 70); g = panel1.CreateGraphics(); game.resize(panel1.Height, panel1.Width); Invalidate(true); } }