C#picturebox的paint事件没有效果 5
privatevoidpictureBox1_Paint(objectsender,PaintEventArgse){Graphicsgra=e.Graphics;Pen...
private void pictureBox1_Paint(object sender, PaintEventArgs e)
{
Graphics gra = e.Graphics;
Pen pen = new Pen(Color.Blue);
gra.DrawLine(pen, 1, 1, 5, 5);
gra.Dispose();
}
运行程序时picturebox1里什么都没有 展开
{
Graphics gra = e.Graphics;
Pen pen = new Pen(Color.Blue);
gra.DrawLine(pen, 1, 1, 5, 5);
gra.Dispose();
}
运行程序时picturebox1里什么都没有 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询