title: c# drawing by mouse
body: <p>I want to draw by mouse by <code>e.X</code> and <code>e.Y</code>. I know I should use <code>list&lt;Point&gt;</code> but I don't know how to do that. Unfortunately I have a problem with <code>drawlines</code>, I can't do that.</p>
  
  <p>Somebody told me that I should use <code>drawlines</code> and not <code>Fillellipse</code>.</p>
  
  <p>Here's the a picture of my current drawing and of the drawing I want to do:</p>
  
  <p><a href="http://img.fileup.cz/?di=1413056646794">drawing http://img.fileup.cz/?di=1413056646794</a></p>
  
  <p>Here's the code: </p>
  
  <pre><code>private void panel1_MouseMove(object sender, MouseEventArgs e)
  {
  
  if (action2)
  {
  stetec = new SolidBrush(lbl_color.BackColor);
  Graphics kp = panel1.CreateGraphics();
  kp.FillEllipse(stetec, e.X, e.Y, 14, 14);
  kp.Dispose();
  }
  }
  
  private void panel1_MouseUp(object sender, MouseEventArgs e)
  {
  action2 = false;
  
  
  }
  
  private void panel1_MouseDown(object sender, MouseEventArgs e)
  {
  action2 = true;
  }
  
  private void panel1_Paint(object sender, PaintEventArgs e)
  {
  
  
  } 
  </code></pre>