Graphics.DrawLine
Form
// in constructor public Form1() { InitializeComponent(); this.Paint += new System.Windows.Forms.PaintEventHandler(this.Form1_Paint); } // Form1_Paint event handler: private void Form1_Paint(object sender, System.Windows.Forms.PaintEventArgs e) { Graphics g = e.Graphics; g.DrawLine(Pens.Black, x1, y1, x2, y2); }
System.Windows.Shapes.Line
<small>new</small>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)