111,120
社区成员
发帖
与我相关
我的任务
分享
public delegate void Paintp();
public event Paintp p;
protected override void OnPaint(PaintEventArgs e)//绿色
{
PointF pf = new PointF(0, 0); //注意文字显示的坐标位置
using (Graphics g = pictureBox1.CreateGraphics())
{
Font f = new Font("Arial", 12);
g.DrawString("Hello!", f, Brushes.Green, pf);
}
}