在visu//al Stu//dio2022中输出俩条长的竖线
private void Form1_Paint(object sender, PaintEventArgs e)
{
//创建画板,这里的画板是由Form提供的.
Graphics grfc = e.Graphics;
//定义了一个橙色,宽度为2的画笔
Pen pen = new Pen(Color.Orange, 2);
//在画板上画直线,起始坐标为(this.Width / 4, this.Height/4),终点坐标为(this.Width*3 / 4, this.Height*3 / 4)
grfc.DrawLine(pen, this.Width / 4, this.Height / 4, this.Width * 3 / 4, this.Height * 3 / 4);