title: Prevent AutoScroll when contained Control gets focus
body: <p>I have a <code>Panel</code> with two <code>Button</code>s on it, one of which is partially hidden. When the partially-hidden button gets focus - such as when the other is clicked and then it  (-the original) is clicked - the panel gets scrolled.
  I need the vertical scrollbar but not the <em>auto</em> scrolling, and there seems to be no way of getting a functioning scrollbar without the auto scrolling.</p>
  
  <p>The code:</p>
  
  <pre><code>using System.Drawing;
  using System.Windows.Forms;
  
  namespace test
  {
      public partial class Form1 : Form
      {
          Panel panel = new Panel
          {
              AutoScroll = true,
              Size = new Size(200, 200),
              Location = new Point(0, 30),
          };
          Button b1 = new Button
          {
              Location = new Point(100, 100),
              Size = new Size(50, 150),
              BackColor = Color.Black
          };
          Button b2 = new Button();
  
          public Form1()
          {
              InitializeComponent();
              panel.Controls.Add(b1);
              Controls.Add(panel);
              Controls.Add(b2);
          }
      }
  }
  </code></pre>