有程序段如下:
private void buttonl_Click(object sender, EventArgs e)
{
Graphics g;
g=this.CreateGraphics();
Pen p=new Pen(Color.Green,2);
g.DrawLine(p,75,50,100,75);
g.DrawLine(p,75,50,100,25);
g.DrawLine(p,100,25,100,75);
p.Dispose();
g.Dispose();
}
画出程序运行后,单击窗口中的button1按钮,在窗体中所绘制出的图形。
【正确答案】: