title: Drawing a line over some picture boxes in C#
body: <p>I am developing a new application in C#, and I need some help.</p>
  
  <p>I want to make this: Drawing a line OVER something. To be more specific, there are some picture-boxes which I generate them with code, and they are not visible at the start of the application.</p>
  
  <p>This is an example if what I want:</p>
  
  <p><img src="https://i.stack.imgur.com/Y4UWP.jpg" alt="Enter image description here"></p>
  
  <p>And what I want like this:</p>
  
  <p><img src="https://i.stack.imgur.com/GluBy.jpg" alt="Enter image description here"></p>
  
  <p>The code that I am using for drawing the first line is this:</p>
  
  <pre><code>Graphics g;
  Pen p;
  
  void drawline(){
     g = this.CreateGraphics();
     p = new System.Drawing.Pen(Color.Red, 15);
     g.DrawLine(p, new Point(10, 150), new Point(900, 150));
  }
  </code></pre>
  
  <p>PS: I am sorry for the second line (it's drawn in <a href="https://en.wikipedia.org/wiki/Microsoft_Paint" rel="nofollow noreferrer">Paint</a> :)  )</p>