title: Resize Controls with Form Resize
body: <p>I have read several stack overflow questions without finding a good working solution to my problem.  How can I resize my controls whenever the form is resized?  I would like them to get larger or smaller when the form becomes larger or smaller.</p>
  
  <p>In visual basic this was quite easy to do with the form.Zoom property (which did't really require resizing controls of course, but solved what I needed).  Unfortunately this is not available in C# winforms.</p>
  
  <p>Here is some other things I have tried without luck:</p>
  
  <pre><code>private void formMain_Resize(object sender, EventArgs e)
  {/*
  double scale;
  this.scaleWidth = (float)this.Width / (float)this.origWidth;
  this.scaleHeight = (float)this.Height / (float)this.origHeight;
  if (this.scaleHeight &gt; this.scaleWidth)
  {
      scale = this.scaleHeight;
  }
  else
  {
      scale = this.scaleWidth;
  }
  
  foreach (Control control in this.Controls)
  {
      control.Height = (int)(control.Height * this.scaleHeight);
      control.Width = (int)(control.Width * this.scaleWidth);
      this.Refresh();
      //  control.Font = new Font("Verdana", control.Font.SizeInPoints * heightRatio * widthRatio);
  }
  ///////This scaling didnt work for me either
  //this.Scale(new SizeF(this.scaleWidth, this.scaleHeight));
  //this.Refresh();
  */
  }
  </code></pre>
  
  <p>If I overlooked an actualy <em>working</em> sample of code on another stack overflow question I would love to see it, but the ones I found were similar to those above which are not working.</p>
  
  <p>Perhaps I was misusing it and someone could post sample code to show for those of us who keep asking this question how to go about solving the problem.</p>
  
  <p>Also, I have tried using some of the anchor/docking tools thinking they would automatically allow it but it didn't.</p>