--- title: "How to: Draw a Sequence of Bézier Splines" ms.date: "03/30/2017" dev_langs: - "csharp" - "vb" helpviewer_keywords: - "splines [Windows Forms], drawing Bezier" - "Bezier splines [Windows Forms], drawing sequence of" ms.assetid: 37a0bedb-20c2-4cf0-91fa-a5509e826b30 --- # How to: Draw a Sequence of Bézier Splines You can use the method of the class to draw a sequence of connected Bézier splines. ## Example The following example draws a curve that consists of two connected Bézier splines. The endpoint of the first Bézier spline is the start point of the second Bézier spline. The following illustration shows the connected splines along with the seven points: ![Graphic that shows the connected splines along with seven points.](./media/how-to-draw-a-sequence-of-bezier-splines/bezier-spline-seven-points.png) [!code-csharp[System.Drawing.ConstructingDrawingCurves#11](~/samples/snippets/csharp/VS_Snippets_Winforms/System.Drawing.ConstructingDrawingCurves/CS/Class1.cs#11)] [!code-vb[System.Drawing.ConstructingDrawingCurves#11](~/samples/snippets/visualbasic/VS_Snippets_Winforms/System.Drawing.ConstructingDrawingCurves/VB/Class1.vb#11)] ## Compiling the Code The preceding example is designed for use with Windows Forms, and it requires `e`, which is a parameter of the event handler. ## See also - [Graphics and Drawing in Windows Forms](graphics-and-drawing-in-windows-forms.md) - [Bézier Splines in GDI+](bezier-splines-in-gdi.md) - [Constructing and Drawing Curves](constructing-and-drawing-curves.md)