在C#中如何在窗体中画一个圆,并以红色填充?

2025-03-13 16:44:03
推荐回答(1个)
回答1:

拖一个label在paint事件中输入以下code private void label1_Paint(object sender, PaintEventArgs e)
{
Graphics gp = e.Graphics;
SolidBrush s = new SolidBrush(Color.Red);
gp.FillEllipse(s,50,50,50,50);
}