C#中的Form_Load的问题

2024-11-27 04:12:53
推荐回答(1个)
回答1:

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