const int border = 15; Graphics g = panelControl1.CreateGraphics(); Point[] myArray = { new Point(border, panelControl1.Height - border), new Point(panelControl1.Width - border, panelControl1.Height - border), new Point(border, border), new Point(panelControl1.Width - border, border) }; GraphicsPath myPath = new GraphicsPath(); myPath.AddBeziers(myArray); Pen myPen = new Pen(Color.Black, 1); g.DrawPath(myPen, myPath);
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question