PaintEventArgs e)
{
g; .Black, 100).CreateGraphics(), 0, 100; e.DrawLine(Pens;Graphics g = pictureBox1, 0, 100), 0;
, 0.DrawLine(Pens
//要么在paint里面写
private void Form1_Paint(object sender, EventArgs e)
{
, 100; .Graphics;
}
//要么确保你画的时候窗口不是最小化状态
private void button1_Click(object sender.Red