c#中在picturebox中不能显示所画的直线直接看代码吧
private void button1_Click(object sender, EventArgs e){ Graphics g = pictureBox1.CreateGraphics(); g.DrawLine(new Pen (System .Drawing .Color .Black ,3), new Point(116, 67), new Point(216,67));//X轴}