110,533
社区成员
发帖
与我相关
我的任务
分享
private void button6_Click(object sender, EventArgs e)
{
Graphics graphics = this.CreateGraphics();
Pen myPen = new Pen(Color.Black, 1);
int beginX =tabControl1.Location.X +50;
int beginY = tabControl1.Location.Y + 65;
//int height = 35;
//int width = 50;
Point pointX1 = new Point(beginX, beginY);
Point pointY1 = new Point(beginX + 210, beginY);
Point pointX2 = new Point(beginX, beginY - 45);
Point pointY2 = new Point(beginX, beginY + 45);
graphics.DrawLine(myPen, pointX1, pointY1);
graphics.DrawLine(myPen, pointX2, pointY2);
}