title: How to draw line and select it in Panel
body: <p>My program can draw lines using canvas.Drawline(). How to click line and change this color (select line)?</p>
  
  <pre><code>private List&lt;Point&gt; coordFirst = new List&lt;Point&gt;();
  private List&lt;Point&gt; coordLast = new List&lt;Point&gt;();
  public Graphics canvas;
  
          private void Form1_Load(object sender, EventArgs e)
          {
              canvas=panel1.CreateGraphics();
          }
  </code></pre>
  
  <p>Coordinate line stored in coordFirs &amp; coodLast.</p>