title: How do I set default to the minimum size my form on resize?
body: <p>Sorry because my english is very bad !</p>
  
  <p>I resize my form with <code>WM_SIZE</code> message, how can I set the <strong>minimum size</strong> for my form? I want the <em>smallest size</em> of the form to be <code>200x100</code>
  Here is my code:</p>
  
  <pre><code>protected override void WndProc(ref Message m)
      {
          const int RESIZE_HANDLE_SIZE = 10;
  
          switch (m.Msg)
          {
              case 0x0084/*NCHITTEST*/ :
                  base.WndProc(ref m);
  
                  if ((int)m.Result == 0x01/*HTCLIENT*/)
                  {
                      Point screenPoint = new Point(m.LParam.ToInt32());
                      Point clientPoint = this.PointToClient(screenPoint);
                      if (clientPoint.Y &lt;= RESIZE_HANDLE_SIZE)
                      {
                          if (clientPoint.X &lt;= RESIZE_HANDLE_SIZE)
                              m.Result = (IntPtr)13/*HTTOPLEFT*/ ;
                          else if (clientPoint.X &lt; (Size.Width - RESIZE_HANDLE_SIZE))
                              m.Result = (IntPtr)12/*HTTOP*/ ;
                          else
                              m.Result = (IntPtr)14/*HTTOPRIGHT*/ ;
                      }
                      else if (clientPoint.Y &lt;= (Size.Height - RESIZE_HANDLE_SIZE))
                      {
                          if (clientPoint.X &lt;= RESIZE_HANDLE_SIZE)
                              m.Result = (IntPtr)10/*HTLEFT*/ ;
                          else if (clientPoint.X &lt; (Size.Width - RESIZE_HANDLE_SIZE))
                              m.Result = (IntPtr)2/*HTCAPTION*/ ;
                          else
                              m.Result = (IntPtr)11/*HTRIGHT*/ ;
                      }
                      else
                      {
                          if (clientPoint.X &lt;= RESIZE_HANDLE_SIZE)
                              m.Result = (IntPtr)16/*HTBOTTOMLEFT*/ ;
                          else if (clientPoint.X &lt; (Size.Width - RESIZE_HANDLE_SIZE))
                              m.Result = (IntPtr)15/*HTBOTTOM*/ ;
                          else
                              m.Result = (IntPtr)17/*HTBOTTOMRIGHT*/ ;
                      }
                  }
                  return;
          }
          base.WndProc(ref m);
      }
  </code></pre>