Перерисовка графики
Как сделать так, чтобы флаг перерисовывался при передвижении рамок окон?
private void Form1_MouseDown(object sender, MouseEventArgs e)
{
Application.Exit();
}
private void Form1_Paint(object sender, PaintEventArgs e)
{
int h = (int)(this.ClientSize.Height / 9.0);
Pen myPen = new Pen(Color.Blue, h);
Pen myPen1 = new Pen(Color.White, h);
for (int i = 0; i < 6; i++)
e.Graphics.DrawLine(myPen, 0, h * 2 * i + 17, Width, h * 2 * i + 17);
e.Graphics.FillRectangle(new SolidBrush(Color.Blue), 0, 0, Width / 3, h * 5);
e.Graphics.DrawLine(myPen1, 0, h * 2 + 17, Width / 3, h * 2 + 17);
e.Graphics.DrawLine(myPen1, Width / 6, 0, Width / 6, h * 5);
myPen.Dispose(); myPen1.Dispose();
}
`