title: Docking and Anchoring on a Windows Form application
body: <p>I'm developing an app for <strong>Windows Mobile 5.0</strong> and above, with <strong>C#</strong> and <strong>.NET Compact Framework 2.0  SP2</strong>.</p>
  
  <p>I have a WinForm with two panels inside (upperPanel and bottomPanel). I want that upperPanel always fill 2/3 of form's height, and bottomPanel fills 1/3 of form's height. Both panels will fill completly form's width.</p>
  
  <p>I've used this:</p>
  
  <pre><code>upperPanel.Dock = Fill;
  bottomPanel.Dock = Bottom;
  </code></pre>
  
  <p>But upperPanel fills the form completly.</p>
  
  <p>How can I do this? I want, more o less, the same gui on <strong>differents form factors</strong> and on <strong>landscape</strong> or <strong>protrait</strong> mode.</p>
  
  <p>Thank you.</p>