GDI绘图时点击按钮在窗体画出图形的代码是什么?、
如题
我来给你画个圈圈:
private void button1_Click(object sender, EventArgs e)
{
Graphics g = this.CreateGraphics();
g.DrawEllipse(new Pen(new SolidBrush(Color.Red)), 10, 10, 50, 50);
}