title: Horizontal Scrolling not working with autoscroll in C#
body: <p>I am trying to set my panel so it will scroll horizontally. I have tried:</p>
  <pre><code>MainPanel.HorizontalScroll.Enabled = true;
  MainPanel.HorizontalScroll.Visible = true;
  MainPanel.VerticalScroll.Enabled = false;
  MainPanel.VerticalScroll.Visible = false;
  </code></pre>
  <p>My MainPanel is a parent to 2 sub Panels that are Horizontaly larger than the Panel itself but the horizontal scroll bar still doesn't appear. How can I fix this?</p>
  <p>This is the code in the <code>.Designer.cs</code> file of the Parent Form of my Panels:</p>
  <pre><code>this.panel0.Dock = System.Windows.Forms.DockStyle.Top;
  this.panel0.Location = new System.Drawing.Point(0, 0);
  this.panel0.Name = &quot;panel0&quot;;
  this.panel0.Size = new System.Drawing.Size(828, 28);
  this.panel0.TabIndex = 2;
  
  //
  // list
  //
  this.list.Dock = System.Windows.Forms.DockStyle.Fill;
  this.list.Location = new System.Drawing.Point(0, 28);
  this.list.Name = &quot;list&quot;;
  this.list.Size = new System.Drawing.Size(828, 444);
  this.list.TabIndex = 3;
  
  //
  // MainPanel
  //
  this.MainPanel.AutoScroll = true;
  this.MainPanel.Controls.Add(this.list);
  this.MainPanel.Controls.Add(this.panel0);
  this.MainPanel.Dock = System.Windows.Forms.DockStyle.Fill;
  this.MainPanel.Location = new System.Drawing.Point(152, 104);
  this.MainPanel.Name = &quot;MainPanel&quot;;
  this.MainPanel.Size = new System.Drawing.Size(828, 472);
  this.MainPanel.TabIndex = 7;
  </code></pre>