日期:2014-05-18 浏览次数:21421 次
private void Form1_Load(object sender, EventArgs e)
{
Graphics g = pictureBox1.CreateGraphics();
g.DrawLine(new Pen(Color.White, 10), 0, 0, 111, 111);
}
private void Form1_Paint(object sender, PaintEventArgs e)
{
Graphics g = pictureBox1.CreateGraphics();
g.DrawLine(new Pen(Color.White, 10), 0, 0, 111, 111);
}
private void pictureBox1_Paint(object sender, PaintEventArgs e)
{
e.Graphics.DrawLine(new Pen(Color.White, 10), 0, 0, 111, 111);
}