title: Scrolling PictureBox
body: <p>I am trying to make an application that is drawing Dendrograms like <a href="http://www.centerspace.net/blog/wp-content/uploads/2010/02/dendrogram.jpg" rel="nofollow">this one</a>.</p>
  
  <p>So I added a <code>PictureBox</code> to the winform, and for start, I wanted to wrote all labels like in the picture with this code:</p>
  
  <pre><code>foreach (var line1 in lines)
  {
      i++;
      gpx.DrawString(line1, myFont, Brushes.Green, new PointF(2, 10 * i));
  }
  </code></pre>
  
  <p>But the problem is that I have a lot of labels so it writes only a few of them on 800x600 px. I wanted to add scrolling bars, but it doesn't work at all. It works only when I am setting an Image to <code>PictureBox</code>.</p>
  
  <p>Is there any other way, with or without <code>PictureBox</code>?</p>